simplified the CLASS_LOAD instruction by chaining it with a PUSH instruction. now the class name part of the out-of-class method defintion refers to a normal variable
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:
@ -66,3 +66,21 @@ try { throw "1111"; } catch (e) ##ERROR: syntax error - block expression expecte
|
||||
try { throw "1111"; } catch (e) {
|
||||
printf "EXCEPTION - %s\n" e
|
||||
} 20 ##ERROR: syntax error - redundant expression prohibited after
|
||||
|
||||
---
|
||||
|
||||
{
|
||||
| a |
|
||||
|
||||
a := 30
|
||||
fun a:get_999() { ##ERROR: exception not handled - "not class"
|
||||
return 999;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
---
|
||||
|
||||
fun a:get_999() { ##ERROR: exception not handled - "a accessed without initialization"
|
||||
return 999;
|
||||
}
|
||||
|
Reference in New Issue
Block a user