summaryrefslogtreecommitdiff
path: root/test/files/run/t1466.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t1466.scala')
-rw-r--r--test/files/run/t1466.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t1466.scala b/test/files/run/t1466.scala
new file mode 100644
index 0000000000..c59a388590
--- /dev/null
+++ b/test/files/run/t1466.scala
@@ -0,0 +1,11 @@
+object IOvervalueMyPrivacy {
+ private[this] var i = 0
+ def go = {
+ List(1,2,3).foreach(i += _)
+ i
+ }
+}
+
+object Test extends App {
+ assert(IOvervalueMyPrivacy.go == 6)
+}