diff options
author | Martin Odersky <odersky@gmail.com> | 2009-10-12 09:41:13 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-10-12 09:41:13 +0000 |
commit | f75ee36c6fb4386eb89f19c40dfa000076aa9307 (patch) | |
tree | 1c43adb5b8b194a7a9c14d4ad7cdca04261cda68 /test/files/neg | |
parent | bf9ca9a2b7455164c335a48826143749b6b107eb (diff) | |
download | scala-f75ee36c6fb4386eb89f19c40dfa000076aa9307.tar.gz scala-f75ee36c6fb4386eb89f19c40dfa000076aa9307.tar.bz2 scala-f75ee36c6fb4386eb89f19c40dfa000076aa9307.zip |
reverted immutable.Vector because it gave rando...
reverted immutable.Vector because it gave random build errors on my
machine. Fixed various tickets, updated test and check files.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t2130.check | 4 | ||||
-rwxr-xr-x | test/files/neg/t2130.scala | 6 | ||||
-rw-r--r-- | test/files/neg/t2336.check | 4 | ||||
-rwxr-xr-x | test/files/neg/t2336.scala | 7 |
4 files changed, 21 insertions, 0 deletions
diff --git a/test/files/neg/t2130.check b/test/files/neg/t2130.check new file mode 100644 index 0000000000..6d6902b121 --- /dev/null +++ b/test/files/neg/t2130.check @@ -0,0 +1,4 @@ +t2130.scala:4: error: implementation restriction: package object foo cannot contain case class X + case class X() + ^ +one error found diff --git a/test/files/neg/t2130.scala b/test/files/neg/t2130.scala new file mode 100755 index 0000000000..012698fd2a --- /dev/null +++ b/test/files/neg/t2130.scala @@ -0,0 +1,6 @@ +// for now we disallow case class in package objects +package object foo { + + case class X() + +} diff --git a/test/files/neg/t2336.check b/test/files/neg/t2336.check new file mode 100644 index 0000000000..983717469c --- /dev/null +++ b/test/files/neg/t2336.check @@ -0,0 +1,4 @@ +t2336.scala:6: error: type Foo[Int] is not a stable prefix + new Foo[Int]#Bar(0) + ^ +one error found diff --git a/test/files/neg/t2336.scala b/test/files/neg/t2336.scala new file mode 100755 index 0000000000..4cea02b721 --- /dev/null +++ b/test/files/neg/t2336.scala @@ -0,0 +1,7 @@ +// we get now: t2336.scala:5: error: type Foo[Int] is not a stable prefix +class Foo[A] { + class Bar[B >: A](x: B) extends Foo[B] +} +object bug { + new Foo[Int]#Bar(0) +} |