aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/i1652.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/neg/i1652.scala b/tests/neg/i1652.scala
new file mode 100644
index 000000000..b8f1297b3
--- /dev/null
+++ b/tests/neg/i1652.scala
@@ -0,0 +1,5 @@
+object Test {
+ val v: Array[Array[Array]] = Array() // error // error
+ def f[T](w: Array[Array[T]]) = { for (r <- w) () }
+ f(v) // error
+}