enhanced the compiler to prohibit variable declaration after 'do' if it's the head of block expression
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
3
t/do-01.err
Normal file
3
t/do-01.err
Normal file
@ -0,0 +1,3 @@
|
||||
## if `do` is not enclosed in `( )`, variable declaration is prohibited
|
||||
(do | k | (set k 10))
|
||||
do | k | {set k 10;}; ##ERROR: syntax error - variable declaration disallowed
|
Reference in New Issue
Block a user