diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-08-05 10:36:52 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-08-05 10:36:52 +0000 |
commit | d850636479c5d1b192c5239d9a5ca7bc0bd82385 (patch) | |
tree | b1ce7b623f5bcb6e3d650799fa6eaf5cd4d59872 /test/files | |
parent | 74f476f3038eafdc4aab56894dc38cd9a7efe7de (diff) | |
download | scala-d850636479c5d1b192c5239d9a5ca7bc0bd82385.tar.gz scala-d850636479c5d1b192c5239d9a5ca7bc0bd82385.tar.bz2 scala-d850636479c5d1b192c5239d9a5ca7bc0bd82385.zip |
All these tests in pending currently pass for me.
Lets see what happens with the commit and nightly builds.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/bug1049.scala | 7 | ||||
-rw-r--r-- | test/files/pos/bug1050.scala | 10 | ||||
-rw-r--r-- | test/files/pos/bug1087.scala | 2 | ||||
-rw-r--r-- | test/files/pos/bug229.scala | 3 | ||||
-rw-r--r-- | test/files/run/exoticnames.check | 0 | ||||
-rw-r--r-- | test/files/run/exoticnames.scala | 7 |
6 files changed, 29 insertions, 0 deletions
diff --git a/test/files/pos/bug1049.scala b/test/files/pos/bug1049.scala new file mode 100644 index 0000000000..452259b9f8 --- /dev/null +++ b/test/files/pos/bug1049.scala @@ -0,0 +1,7 @@ +package bug1049 + +abstract class Test { + type T <: A + class A requires T + class B requires T extends A +} diff --git a/test/files/pos/bug1050.scala b/test/files/pos/bug1050.scala new file mode 100644 index 0000000000..8ca79716a9 --- /dev/null +++ b/test/files/pos/bug1050.scala @@ -0,0 +1,10 @@ +package bug1050 + +abstract class A { + type T <: scala.ScalaObject + class A requires T { + def b = 3 + def c = b + b + } +} diff --git a/test/files/pos/bug1087.scala b/test/files/pos/bug1087.scala new file mode 100644 index 0000000000..19d62116c6 --- /dev/null +++ b/test/files/pos/bug1087.scala @@ -0,0 +1,2 @@ +case class Foo +case class Prd (pred : Char => Boolean) extends Foo diff --git a/test/files/pos/bug229.scala b/test/files/pos/bug229.scala new file mode 100644 index 0000000000..0922499c6c --- /dev/null +++ b/test/files/pos/bug229.scala @@ -0,0 +1,3 @@ +class Test extends java.util.ArrayList[Object] { + override def add(index: int, element: java.lang.Object): unit = {} +} diff --git a/test/files/run/exoticnames.check b/test/files/run/exoticnames.check new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/files/run/exoticnames.check diff --git a/test/files/run/exoticnames.scala b/test/files/run/exoticnames.scala new file mode 100644 index 0000000000..7c8dcea5e8 --- /dev/null +++ b/test/files/run/exoticnames.scala @@ -0,0 +1,7 @@ +// this is a run-test because the compiler should emit bytecode that'll pass the JVM's verifier +object Test extends Application { + def `(` = error("bla") + def `.` = error("bla") + def `)` = error("bla") + def `,` = error("bla") +}
\ No newline at end of file |