Stream: bugs

Topic: false positive type error?


view this post on Zulip Prokop Randacek (Jul 19 2026 at 18:40):

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

view this post on Zulip Jared Ramirez (Jul 19 2026 at 18:44):

huh, ya! can you make a GH issue please?

view this post on Zulip Prokop Randacek (Jul 19 2026 at 18:45):

sure thing

view this post on Zulip Richard Feldman (Jul 19 2026 at 20:28):

fixed! Thanks for reporting @Prokop Randacek :smiley:

view this post on Zulip Prokop Randacek (Jul 19 2026 at 20:44):

Thanks for the fix :star_struck:


Last updated: Jul 23 2026 at 13:15 UTC