Open plietar opened 7 years ago
Definitely seems like something we should support if it is possible. I'll have to look into this later and see what's causing the cycle and if we can easily avoid it.
Yeah, we should be able to handle this. It's another recursive type edge case.
The following program causes the compiler to recurse infinitely, until it overflows its stack and segfaults. Using a union type
(X | N iso)
compiles fine.This is the bottom of the backtrace in lldb. The frames before that just alternate between
typeparam.c:330
andtypeparam.c:314