Closed
Description
Describe the bug
expressionIf
detection seems to fail here (works if the if
is prefixed with return
directly):
Input file
class Main {
static function main() {
return [
for (meta in node.metadata) {
var child = node.children[meta - 1];
if (child == null) 0 else value(child);
}
].sum();
}
}
Broken output
class Main {
static function main() {
return [
for (meta in node.metadata) {
var child = node.children[meta - 1];
if (child == null)
0
else
value(child);
}
].sum();
}
}