From bf83b15cadf4bea4bc025ef84042f3bcbb5d3621 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Thu, 8 Nov 2007 18:14:04 +0000 Subject: Fixed ticket #193 by issuing a compile-time error. --- test/files/neg/multi-array.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/neg/multi-array.scala (limited to 'test/files/neg/multi-array.scala') 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) +} -- cgit v1.2.3