Open andreagilot-da opened 1 year ago
Other minimal example but this time without unfold(...)
or variables defined twice with the same name:
case class A() {
def f(w: Unit): Boolean = true
}
def foo(a: A): Unit = ()
def bug(a: A, w: Unit): Unit = {
if (true) {
foo(a)
assert(a.f(w))
def w2: Unit = w
assert(a.f(w2))
}
def w3: Unit = w
val variable = a.f(w3)
}
When running the following snippet of code with both stainless-scalac and dotty, Stainless outputs the following error message.
Any change to the minimized example removes the error.