Hi! :D
fun : a -> a
fun = { crash "NYI" }
gives
┌───────────────┐
│ TYPE MISMATCH ├─ This expression is used in an ──┐
└┬──────────────┘ unexpected way. │
│ │
│ fun : a -> a │
│ ‾ │
└────────────────── /tmp/tmp.LfZsV8HsxC/a.roc:1:7 ┘
It has the type:
a
But you are trying to use it as:
a
which sounds like a bug :D
huh, ya! can you make a GH issue please?
sure thing
fixed! Thanks for reporting @Prokop Randacek :smiley:
Thanks for the fix :star_struck:
Last updated: Jul 23 2026 at 13:15 UTC