summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-07-02 17:53:28 +0000
committerMartin Odersky <odersky@gmail.com>2009-07-02 17:53:28 +0000
commit3b72f6de8213b573675650d4ca16c0563981f965 (patch)
tree0c1b0432ee4ca068a00db330ccf413b79e2530a1 /test
parent08a4234ce025896bdcf4910a67d8178cf4336cb2 (diff)
downloadscala-3b72f6de8213b573675650d4ca16c0563981f965.tar.gz
scala-3b72f6de8213b573675650d4ca16c0563981f965.tar.bz2
scala-3b72f6de8213b573675650d4ca16c0563981f965.zip
refined range positions some more; eliminated A...
refined range positions some more; eliminated Array.withDims
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/bug1241.check5
-rw-r--r--test/files/neg/bug473.check2
-rw-r--r--test/files/neg/multi-array.check2
-rw-r--r--test/files/neg/t0345.check4
4 files changed, 5 insertions, 8 deletions
diff --git a/test/files/neg/bug1241.check b/test/files/neg/bug1241.check
index 2a892a274c..48c86cabb7 100644
--- a/test/files/neg/bug1241.check
+++ b/test/files/neg/bug1241.check
@@ -1,7 +1,4 @@
bug1241.scala:5: error: class type required but AnyRef{def hello(): Unit} found
val x4 = new T { def hello() { println("4") } } // error!
^
-bug1241.scala:5: error: AnyRef{def hello(): Unit} does not have a constructor
- val x4 = new T { def hello() { println("4") } } // error!
- ^
-two errors found
+one error found
diff --git a/test/files/neg/bug473.check b/test/files/neg/bug473.check
index c7d54fc4b3..7d21dfb210 100644
--- a/test/files/neg/bug473.check
+++ b/test/files/neg/bug473.check
@@ -1,4 +1,4 @@
bug473.scala:3: error: super constructor cannot be passed a self reference unless parameter is declared by-name
case object Voop extends Foo(Voop)
- ^
+ ^
one error found
diff --git a/test/files/neg/multi-array.check b/test/files/neg/multi-array.check
index 8af656ab6b..49ffdefbf7 100644
--- a/test/files/neg/multi-array.check
+++ b/test/files/neg/multi-array.check
@@ -1,4 +1,4 @@
-multi-array.scala:6: warning: new Array(...) with multiple dimensions has been deprecated; use Array.withDims(...) instead
+multi-array.scala:6: warning: new Array(...) with multiple dimensions has been deprecated; use Array.ofDim(...) instead
val a: Array[Int] = new Array(10, 10)
^
multi-array.scala:6: error: too many arguments for array constructor: found 2 but array has only 1 dimension(s)
diff --git a/test/files/neg/t0345.check b/test/files/neg/t0345.check
index cf1d330360..1e55d01cd1 100644
--- a/test/files/neg/t0345.check
+++ b/test/files/neg/t0345.check
@@ -1,4 +1,4 @@
t0345.scala:2: error: object creation impossible, since method cons in trait Lizt of type (a: Nothing)Unit is not defined
- val empty = new Lizt[Nothing] {
- ^
+ val empty = new Lizt[Nothing] {
+ ^
one error found