changed the syntax of the class-level variable declacration to use square brackets
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-07-09 23:44:24 +09:00
parent e91c9da9d4
commit 8f87dbe008
9 changed files with 113 additions and 151 deletions

View File

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