mers/mers_old/tests/modify_variable.mers

10 lines
258 B
Plaintext
Raw Normal View History

// NOTE: Might change, but this is the current state of things
x := 10
t := thread(() {
sleep(0.25)
x
})
&x = 20 // -> 20 20 because it modifies the original variable x
// x := 20 // -> 10 20 because it shadows the original variable x
t.await() == x