roc
roc copied to clipboard
Panic on parsing file with only `interface Foo`
With Foo.roc:
interface Foo
roc test Foo.roc panics:
thread 'main' panicked at crates/reporting/src/error/parse.rs:3663:14:
not yet implemented: unhandled `exposes` parsing error IndentExposes(@13)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Adding imports [] makes it print a regular parse error:
interface Foo
imports []
roc test Foo.roc prints:
── WEIRD EXPOSES in Foo.roc ────────────────────────────────────────────────────
I am partway through parsing a header, but I got stuck here:
1│ interface Foo
2│ imports []
^
I am expecting the exposes keyword next, like
exposes [Animal, default, tame]