Skip to main content
Changed
koja check now checks test/ sources in addition to src/.
Fixed
- Assigning to a field of a
match pattern binding no longer corrupts memory and crashes at runtime.
- A match or cond arm whose head wraps across lines now parses on every arm, not just the first.
- Various
koja format fixes:
- Trailing comments on enum variants, match/receive/cond arms, and function signatures stay put instead of moving to the next item.
- Enum struct variants lay out like struct literals. Braces hug the variant name and short field lists stay on one line.
- A comment above a field inside an enum struct variant no longer moves to before the next variant.
- A comment between an arm head and its body no longer moves to after the end of the block.
- A closure no longer collapses onto one line when a comment inside the body would comment out
end.
- Comments inside collection literals, constructions, call arguments, parameter lists, and dot chains stay anchored to their element instead of moving below the statement.
- A comment between an annotation and its declaration hoists above the annotation and stays put on later passes.
koja test now reports parse errors in test files instead of printing no tests found.