From 4fa2b5ac18183adae9c5cb69344d0100f9b1dfd1 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 18 Jul 2009 21:32:20 +0000 Subject: Test case for bug #1466, which was mysteriously... Test case for bug #1466, which was mysteriously fixed at some point in the last nine months. --- test/files/run/bug1466.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/run/bug1466.scala (limited to 'test/files/run') diff --git a/test/files/run/bug1466.scala b/test/files/run/bug1466.scala new file mode 100644 index 0000000000..0ad8c93aad --- /dev/null +++ b/test/files/run/bug1466.scala @@ -0,0 +1,11 @@ +object IOvervalueMyPrivacy { + private[this] var i = 0 + def go = { + List(1,2,3).foreach(i += _) + i + } +} + +object Test extends Application { + assert(IOvervalueMyPrivacy.go == 6) +} \ No newline at end of file -- cgit v1.2.3