Closed unlessgames closed 1 week ago
The same thing parses fine outside of a class
fn := (i: number) : string => if i < 10 "a" else "b"
The reason this works is because it's an arrow. Using a function
instead also doesn't parse:
function fn(i: number): string
if i < 10
"a"
else
"b"
Trying to upgrade to newer civet version (from 0.6.x), I get some errors in my code, like this won't parse anymore
The same thing parses fine outside of a class
or using
do