updated test cases
All checks were successful
continuous-integration/drone/push Build is passing

implementing method defintion outside the class definition block
This commit is contained in:
2024-03-14 23:26:38 +09:00
parent 37e0efc74a
commit 9ff7c32262
4 changed files with 83 additions and 31 deletions

View File

@ -21,3 +21,19 @@ defclass X :: B | a b | {
}
};
---
defclass X {
defun :* xxx() {
return X;
}
defun :* qqq() {
return "hello"
}
defun String:length() { ##ERROR: syntax error - class name prohibited
return (str.length self)
}
}