From 4500aea22473b9ce61e4487e3cceeedb26382d8d Mon Sep 17 00:00:00 2001 From: paltherr Date: Thu, 2 Oct 2003 12:37:06 +0000 Subject: - Moved bug 142 into bugs.scala - Added bug 174 to bugs.scala - Improved output of bugs.scala - Added bugs.check --- test/files/jvm/bug142.check | 8 -------- test/files/jvm/bug142.scala | 39 --------------------------------------- 2 files changed, 47 deletions(-) delete mode 100644 test/files/jvm/bug142.check delete mode 100644 test/files/jvm/bug142.scala (limited to 'test/files/jvm') diff --git a/test/files/jvm/bug142.check b/test/files/jvm/bug142.check deleted file mode 100644 index 2ecb5b2188..0000000000 --- a/test/files/jvm/bug142.check +++ /dev/null @@ -1,8 +0,0 @@ -ok -ok -ok -ok -ok -ok -ok -ok diff --git a/test/files/jvm/bug142.scala b/test/files/jvm/bug142.scala deleted file mode 100644 index 9985ec83bf..0000000000 --- a/test/files/jvm/bug142.scala +++ /dev/null @@ -1,39 +0,0 @@ -//############################################################################ -// Bug 142 -//############################################################################ -// $Id$ - -import System.out.println; - -abstract class Foo1 { class Inner; def foo: Inner; foo; } -abstract class Foo2 { class Inner; def foo: Inner = {println("ok"); null}; } -abstract class Foo3 { type Inner; def foo: Inner; foo; } -abstract class Foo4 { type Inner; def foo: Inner = {println("ok"); null.asInstanceOf[Inner]}; } - -abstract class Bar1 { type Inner; def foo: Inner = {println("ok"); null.asInstanceOf[Inner]}; } -abstract class Bar2 { type Inner; def foo: Inner; foo; } -abstract class Bar3 { class Inner; def foo: Inner = {println("ok"); null}; } -abstract class Bar4 { class Inner; def foo: Inner; foo; } - -object Test1 extends Foo1 with Bar1 {def main(args:Array[String]):Unit=();} -object Test2 extends Foo2 with Bar2 {def main(args:Array[String]):Unit=();} -object Test3 extends Foo3 with Bar3 {def main(args:Array[String]):Unit=();} -object Test4 extends Foo4 with Bar4 {def main(args:Array[String]):Unit=();} -object Test5 with Foo1 with Bar1 {def main(args:Array[String]):Unit=();} -object Test6 with Foo2 with Bar2 {def main(args:Array[String]):Unit=();} -object Test7 with Foo3 with Bar3 {def main(args:Array[String]):Unit=();} -object Test8 with Foo4 with Bar4 {def main(args:Array[String]):Unit=();} - -object Test { - def main(args:Array[String]): Unit = { - Test1; - Test2; - Test3; - Test4; - Test5; - Test6; - Test7; - Test8; - () - } -} -- cgit v1.2.3