diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/bug1241.check | 5 | ||||
-rw-r--r-- | test/files/neg/bug473.check | 2 | ||||
-rw-r--r-- | test/files/neg/multi-array.check | 2 | ||||
-rw-r--r-- | test/files/neg/t0345.check | 4 |
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 |