We had ExpressionKind::Interned as always requiring a semicolon to separate two expressions, but this isn't true for all expression types (blocks, if). We can't check what is interned so I just always made the semicolon optional.
Additional Context
Documentation*
Check one:
[x] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.
PR Checklist*
[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt on default settings.
Description
Problem*
Resolves https://github.com/noir-lang/noir/issues/6060
Summary*
We had
ExpressionKind::Interned
as always requiring a semicolon to separate two expressions, but this isn't true for all expression types (blocks, if). We can't check what is interned so I just always made the semicolon optional.Additional Context
Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.