roc/crates/compiler/test_syntax/tests/snapshots/pass/plus_if.expr.result-ast
Joshua Warner b4fa7294c7
Extend test_syntax to check that canonicalization doesn't panic on the input
Importantly, this would have caught the issue discovered in #7279, prior to that landing on main.
2024-12-06 17:13:10 -08:00

32 lines
651 B
Text

@0-30 SpaceAfter(
BinOps(
[
(
@0-1 Num(
"1",
),
@2-3 Star,
),
],
@4-30 If {
if_thens: [
(
@7-16 Var {
module_name: "Bool",
ident: "true",
},
@22-23 Num(
"1",
),
),
],
final_else: @29-30 Num(
"1",
),
indented_else: false,
},
),
[
Newline,
],
)