5 lines
No EOL
209 B
Text
5 lines
No EOL
209 B
Text
def main(bool a) -> field:
|
|
// ternary expression should be wrapped in parentheses 1 + (a ? 2 : 3)
|
|
// otherwise the whole expression is parsed as (1 + a) ? 2 : 3
|
|
field x = 1 + a ? 2 : 3
|
|
return x |