summaryrefslogtreecommitdiff
path: root/test/files/neg/multi-array.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/multi-array.scala')
-rw-r--r--test/files/neg/multi-array.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/multi-array.scala b/test/files/neg/multi-array.scala
new file mode 100644
index 0000000000..993a1c0865
--- /dev/null
+++ b/test/files/neg/multi-array.scala
@@ -0,0 +1,7 @@
+/** Check that a multi-dimensional array can't be created
+ * when the wrong number of arguments w.r.t. to the array's
+ * type is given.
+ */
+class Foo {
+ val a: Array[Int] = new Array(10, 10)
+}