diff options
author | Paul Phillips <paulp@improving.org> | 2009-07-18 21:32:20 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-07-18 21:32:20 +0000 |
commit | 4fa2b5ac18183adae9c5cb69344d0100f9b1dfd1 (patch) | |
tree | ec2fcd3fd24df793c224b70a226659299ffab2a0 | |
parent | fd1c68f004f9cec9fc2aef430b0d28e845207987 (diff) | |
download | scala-4fa2b5ac18183adae9c5cb69344d0100f9b1dfd1.tar.gz scala-4fa2b5ac18183adae9c5cb69344d0100f9b1dfd1.tar.bz2 scala-4fa2b5ac18183adae9c5cb69344d0100f9b1dfd1.zip |
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.
-rw-r--r-- | test/files/run/bug1466.scala | 11 |
1 files changed, 11 insertions, 0 deletions
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 |