diff options
-rw-r--r-- | test/files/neg/bug421.check | 5 | ||||
-rw-r--r-- | test/files/neg/bug452.check | 2 | ||||
-rw-r--r-- | test/files/neg/constrs.check | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/test/files/neg/bug421.check b/test/files/neg/bug421.check new file mode 100644 index 0000000000..9f21d432fb --- /dev/null +++ b/test/files/neg/bug421.check @@ -0,0 +1,5 @@ +new foo.this.Bar.this("foo", "meets", Array[java.lang.String]{"bar"}) match List(case (java.lang.String,java.lang.Object,scala.Seq[java.lang.String])foo.this.Bar("foo", (_)*, Array[java.lang.String]{}) => scala.this.Predef.error("huh?")) +bug421.scala:4 error: regular expressions not yet implemented + Bar("foo","meets","bar") match { + ^ +one error found diff --git a/test/files/neg/bug452.check b/test/files/neg/bug452.check index 32c3448812..10590242aa 100644 --- a/test/files/neg/bug452.check +++ b/test/files/neg/bug452.check @@ -1,5 +1,5 @@ bug452.scala:3 error: type mismatch; - found : Test.type (with underlying type Test) + found : Test.type (with underlying type <object Test>) required: Test.this.Foo def this() = this(this); ^ diff --git a/test/files/neg/constrs.check b/test/files/neg/constrs.check index 7b7365ea00..00b60a35b5 100644 --- a/test/files/neg/constrs.check +++ b/test/files/neg/constrs.check @@ -1,7 +1,7 @@ -constrs.scala:6 error: type T is not a member of test +constrs.scala:6 error: type T is not a member of <object test> def this(y: int)(z: int)(t: this.T) = { this(this.u + y + z); System.out.println(x) } ^ -constrs.scala:6 error: value u is not a member of test +constrs.scala:6 error: value u is not a member of <object test> def this(y: int)(z: int)(t: this.T) = { this(this.u + y + z); System.out.println(x) } ^ constrs.scala:10 error: called constructor must precede calling constructor |