enhanced the reader and compiler to treat the binop expression like a message-send expression
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:
@ -15,11 +15,11 @@ defun test-non-local-ret-1(k) {
|
||||
};
|
||||
|
||||
set a (test-non-local-ret-1 20);
|
||||
if (/= a 28) { printf "ERROR: a must be 28\n" } \
|
||||
if (~= a 28) { printf "ERROR: a must be 28\n" } \
|
||||
else { printf "OK %d\n" a };
|
||||
|
||||
set a (test-non-local-ret-1 21);
|
||||
if (/= a 41) { printf "ERROR: a must be 41\n" } \
|
||||
if (~= a 41) { printf "ERROR: a must be 41\n" } \
|
||||
else { printf "OK %d\n" a };
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ defun ff() { return 999 };
|
||||
|
||||
## test a normal block return
|
||||
set a (ff);
|
||||
if (/= a 999) { printf "ERROR: a must be 999\n" } \
|
||||
if (~= a 999) { printf "ERROR: a must be 999\n" } \
|
||||
else { printf "OK %d\n" a };
|
||||
|
||||
## return from top-level
|
||||
|
Reference in New Issue
Block a user