diff options
author | Martin Odersky <odersky@gmail.com> | 2014-11-08 09:43:11 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-11-09 19:09:51 +0100 |
commit | 0cd63ac2a8ae378d85922cbef4c3b4654fb75ea7 (patch) | |
tree | a1230230d49deea6dc341d27af3dc33995e2a86e /tests/pos/blockescapes.scala | |
parent | 75c06fcb0116a9cb68aa06573431401a05713856 (diff) | |
download | dotty-0cd63ac2a8ae378d85922cbef4c3b4654fb75ea7.tar.gz dotty-0cd63ac2a8ae378d85922cbef4c3b4654fb75ea7.tar.bz2 dotty-0cd63ac2a8ae378d85922cbef4c3b4654fb75ea7.zip |
Adding test for Unit vars.
Diffstat (limited to 'tests/pos/blockescapes.scala')
-rw-r--r-- | tests/pos/blockescapes.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pos/blockescapes.scala b/tests/pos/blockescapes.scala index 35d40974b..68ce37ed3 100644 --- a/tests/pos/blockescapes.scala +++ b/tests/pos/blockescapes.scala @@ -3,7 +3,7 @@ object blockescapes { { val x = 0; () } val x0 = { class Foo; new Foo } val x1 = {} - val x2 = { val z = 0 } + var x2 = { val z = 0 } val m1 = { val x = 2; x } trait T |