diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-12 08:03:08 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-12 08:03:26 -0700 |
commit | f1d81c9b9b300b2f526c03a27600e6fe481fc7c6 (patch) | |
tree | b5fbce95df14ee28a7e81f963f92ed8842bd3fe6 /test/files/run/t5037.scala | |
parent | a9a2fd7c479eb8d68bf7e58cd0f6084a2106ca7d (diff) | |
download | scala-f1d81c9b9b300b2f526c03a27600e6fe481fc7c6.tar.gz scala-f1d81c9b9b300b2f526c03a27600e6fe481fc7c6.tar.bz2 scala-f1d81c9b9b300b2f526c03a27600e6fe481fc7c6.zip |
Test case closes SI-5037.
Diffstat (limited to 'test/files/run/t5037.scala')
-rw-r--r-- | test/files/run/t5037.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t5037.scala b/test/files/run/t5037.scala new file mode 100644 index 0000000000..7b1fce7a82 --- /dev/null +++ b/test/files/run/t5037.scala @@ -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 +} |