roc icon indicating copy to clipboard operation
roc copied to clipboard

Monomorphization reaching `unreachable!` branch

Open rtfeldman opened this issue 3 years ago • 1 comments

In 181fcb97f702b36e839256daae3104ee2a89c135 running cargo run examples/gui/Hello.roc triggers an unreachable!

'internal error: entered unreachable code: so far', compiler/mono/src/ir.rs:2410:21

Of note, this only started happening after introducing a large recursive type that's not named (it's defined recursively using as, which in this case is important).

rtfeldman avatar Feb 24 '22 05:02 rtfeldman

Related to https://github.com/rtfeldman/roc/issues/3549, and is fixed by the patch mentioned there.

ayazhafiz avatar Aug 10 '22 22:08 ayazhafiz

This has been resolved, in part with #3549

ayazhafiz avatar Dec 02 '22 23:12 ayazhafiz