diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/blockescapes.scala | 2 | ||||
-rw-r--r-- | tests/pos/traits.scala | 4 |
2 files changed, 3 insertions, 3 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 diff --git a/tests/pos/traits.scala b/tests/pos/traits.scala index 15310d5a4..db611eeb5 100644 --- a/tests/pos/traits.scala +++ b/tests/pos/traits.scala @@ -1,10 +1,10 @@ -trait B { +trait B extends Object { val z: Int } -trait T { +trait T extends B { var x = 2 |