compiler improvement to support out-of-class class method or calss instance method definitions. pending more tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-26 23:18:26 +09:00
parent c219d073ca
commit b4d435a593
14 changed files with 201 additions and 66 deletions

View File

@ -1,6 +1,6 @@
## test class instantiation methods
defclass A | a b c | {
class A | a b c | {
defun :*newInstance(x y z) {
set a x;
@ -14,7 +14,7 @@ defclass A | a b c | {
defun get-c() { return self.c; };
};
defclass B :: A | d e f | {
class B :: A | d e f | {
defun :*newInstance(x y z) {
super:newInstance (* x 2) (* y 2) (* z 2);