From 1bb3f81b2e10dec7b949aea0dcb6d58726f4f4f0 Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 30 Jan 2008 11:16:10 +0000 Subject: updated some test files --- test/files/pos/t0301.scala | 12 ++++++++++++ test/files/pos/t301.scala | 12 ------------ test/files/run/bug874.check | 4 ---- test/files/run/t0091.check | 1 + test/files/run/t0091.scala | 13 +++++++++++++ test/files/run/t091.check | 1 - test/files/run/t091.scala | 13 ------------- 7 files changed, 26 insertions(+), 30 deletions(-) create mode 100644 test/files/pos/t0301.scala delete mode 100644 test/files/pos/t301.scala delete mode 100644 test/files/run/bug874.check create mode 100644 test/files/run/t0091.check create mode 100644 test/files/run/t0091.scala delete mode 100644 test/files/run/t091.check delete mode 100644 test/files/run/t091.scala (limited to 'test') diff --git a/test/files/pos/t0301.scala b/test/files/pos/t0301.scala new file mode 100644 index 0000000000..cb68f38062 --- /dev/null +++ b/test/files/pos/t0301.scala @@ -0,0 +1,12 @@ +package fos + +abstract class Expr +case class Var extends Expr + +object Analyzer { + def substitution(expr: Expr, cls: (Var,Var)): Expr = + expr match { + case cls._2 => cls._1 // source of the error + case _ => expr + } +} diff --git a/test/files/pos/t301.scala b/test/files/pos/t301.scala deleted file mode 100644 index cb68f38062..0000000000 --- a/test/files/pos/t301.scala +++ /dev/null @@ -1,12 +0,0 @@ -package fos - -abstract class Expr -case class Var extends Expr - -object Analyzer { - def substitution(expr: Expr, cls: (Var,Var)): Expr = - expr match { - case cls._2 => cls._1 // source of the error - case _ => expr - } -} diff --git a/test/files/run/bug874.check b/test/files/run/bug874.check deleted file mode 100644 index 6989e47ff5..0000000000 --- a/test/files/run/bug874.check +++ /dev/null @@ -1,4 +0,0 @@ -T created -U created with xyz and 2 -T created -U created with abc and 1 diff --git a/test/files/run/t0091.check b/test/files/run/t0091.check new file mode 100644 index 0000000000..7ed6ff82de --- /dev/null +++ b/test/files/run/t0091.check @@ -0,0 +1 @@ +5 diff --git a/test/files/run/t0091.scala b/test/files/run/t0091.scala new file mode 100644 index 0000000000..eaddde0dbf --- /dev/null +++ b/test/files/run/t0091.scala @@ -0,0 +1,13 @@ +trait A { def x : Int } +trait B { val m : A } +object C extends B { + object m extends A { def x = 5 } +} +object Test { + // The type annotation here is necessary, otherwise + // the compiler would reference C$m$ directly. + def o : B = C + def main(argv : Array[String]) : Unit = { + println(o.m.x) + } +} diff --git a/test/files/run/t091.check b/test/files/run/t091.check deleted file mode 100644 index 7ed6ff82de..0000000000 --- a/test/files/run/t091.check +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/test/files/run/t091.scala b/test/files/run/t091.scala deleted file mode 100644 index eaddde0dbf..0000000000 --- a/test/files/run/t091.scala +++ /dev/null @@ -1,13 +0,0 @@ -trait A { def x : Int } -trait B { val m : A } -object C extends B { - object m extends A { def x = 5 } -} -object Test { - // The type annotation here is necessary, otherwise - // the compiler would reference C$m$ directly. - def o : B = C - def main(argv : Array[String]) : Unit = { - println(o.m.x) - } -} -- cgit v1.2.3