Open madmann91 opened 7 years ago
The following code triggers the assertion (using impala and -emit-thorin):
struct Blob { done: fn () -> bool } fn test(next_blob: Blob) -> () { let next = |exit| { next_blob }; let mut blob : Blob; while !blob.done() { blob = next(continue); } }
The problem ist that the continue continuation is passed as argument to next. Impala's emit doesn't handle this at the moment.
continue
next
emit
So actually, it's a bug in Impala.
The following code triggers the assertion (using impala and -emit-thorin):