From f1d81c9b9b300b2f526c03a27600e6fe481fc7c6 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 12 May 2012 08:03:08 -0700 Subject: Test case closes SI-5037. --- test/files/run/t5037.scala | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/files/run/t5037.scala (limited to 'test/files/run/t5037.scala') 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 +} -- cgit v1.2.3