let 'fun' replace 'defun' totally
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
defclass A [ a ] {
|
||||
defun :* init1() {
|
||||
fun :* init1() {
|
||||
| b |
|
||||
set b (+ 1 2);
|
||||
set a b;
|
||||
@ -15,7 +15,7 @@ defclass A [ a ] {
|
||||
printf ">>> %d\n" j;
|
||||
}
|
||||
|
||||
defun :* init2() {
|
||||
fun :* init2() {
|
||||
| b |
|
||||
set b (+ 10 20);
|
||||
set a b;
|
||||
@ -26,7 +26,7 @@ defclass A [ a ] {
|
||||
|
||||
---
|
||||
|
||||
defun String length() { ##ERROR: syntax error - no argument list
|
||||
fun String length() { ##ERROR: syntax error - no argument list
|
||||
}
|
||||
|
||||
---
|
||||
|
Reference in New Issue
Block a user