summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-07-18 21:32:20 +0000
committerPaul Phillips <paulp@improving.org>2009-07-18 21:32:20 +0000
commit4fa2b5ac18183adae9c5cb69344d0100f9b1dfd1 (patch)
treeec2fcd3fd24df793c224b70a226659299ffab2a0 /test/files/run
parentfd1c68f004f9cec9fc2aef430b0d28e845207987 (diff)
downloadscala-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.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/bug1466.scala11
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