Skip to content
Permalink
Browse files
Test case closes SI-5037.
  • Loading branch information
paulp committed May 12, 2012
1 parent a9a2fd7 commit f1d81c9b9b300b2f526c03a27600e6fe481fc7c6
Showing with 20 additions and 0 deletions.
  1. +2 −0 test/files/run/t5037.check
  2. +18 −0 test/files/run/t5037.scala
@@ -0,0 +1,2 @@
true
false
@@ -0,0 +1,18 @@
object Test {
def main(args: Array[String]) {
val t = new Test
t.inner.foo()
}
}

class Test {
class Inner {
def foo() {
println(bar)
bar = false
println(bar)
}
}
val inner = new Inner
private[this] final var bar = true
}

0 comments on commit f1d81c9

Please sign in to comment.