diff options
author | Martin Odersky <odersky@gmail.com> | 2006-05-30 21:27:17 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-05-30 21:27:17 +0000 |
commit | cab784ad14708b1c2b95d8af44b20f802667e7b2 (patch) | |
tree | 2ccb382bacf5496a9f45ce54681f9b732de0fb86 /test | |
parent | cc2a602aa52ba809d8d7987ddb8a290e3b5c9092 (diff) | |
download | scala-cab784ad14708b1c2b95d8af44b20f802667e7b2.tar.gz scala-cab784ad14708b1c2b95d8af44b20f802667e7b2.tar.bz2 scala-cab784ad14708b1c2b95d8af44b20f802667e7b2.zip |
Diffstat (limited to 'test')
-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 |