You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importstainless.annotation.purecaseclassBox(varlength:Int)
objectFoo {
defmakeBox():Box=Box(0)
defmutate(b: Box):Unit= { b.length =123; }
// Crash in ImperativeCodeElimination and omits effect on b1/b2defh(b1: Box, b2: Box):Unit= {
valx= b1.length
valc=if (true) b1 else b2
vald= c // Interacts with Let handling `computeExprEffects`// We try to assign to val c (and nothing else!)
mutate(d)
assert(b1.length == x)
}
}
This code
causes the above mentioned
Taken from #819 .
The text was updated successfully, but these errors were encountered: