6 lines
215 B
Text
6 lines
215 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;
|
|
}
|