diff options
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 |