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
MutableList.scala has two local fields which alias each other, similar to the following:
class Counter {
private var x = 0
def inc(): Int @pure @mod(this) = { x += 1; x }
}
class MUHA {
@local var firstC = new Counter
@local var lastC = firstC
def f(): Counter @loc(this) = {
lastC
}
}
the above should work. the below should not:
class MUHA {
var firstC = new Counter // non-local
@local var lastC = firstC // should fail
def f(): Counter @loc(this) = {
lastC
}
}
The text was updated successfully, but these errors were encountered:
MutableList.scala has two local fields which alias each other, similar to the following:
the above should work. the below should not:
The text was updated successfully, but these errors were encountered: