diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-16 18:20:15 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-16 18:20:15 +0000 |
commit | 17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3 (patch) | |
tree | bb804b4038eb6d0dee58b77cea8bd2dcc6f42dc4 /test/files/pos/compile.scala | |
parent | e70a1a24ef7a7b596a92e1853fd44e96f36ad245 (diff) | |
download | scala-17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3.tar.gz scala-17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3.tar.bz2 scala-17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3.zip |
Removed old scala tests from new Scala core mod...
Removed old scala tests from new Scala core module.
Diffstat (limited to 'test/files/pos/compile.scala')
-rw-r--r-- | test/files/pos/compile.scala | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/test/files/pos/compile.scala b/test/files/pos/compile.scala deleted file mode 100644 index f7ada3193c..0000000000 --- a/test/files/pos/compile.scala +++ /dev/null @@ -1,149 +0,0 @@ -//############################################################################ -// Compile Time Bugs & Test Cases -//############################################################################ -// $Id$ - -import java.lang.System; // to avoid name clash with .NET's library - -//############################################################################ -// Test 0 - -class Test0Foo[X]; - -object Test0Test { - type Gen[A] = Test0Foo[A]; - class Tic(g: Test0Test.Gen[Int]); - class Tac(g: Gen[Int]); -} - -//############################################################################ -// Test 1 - Single types in lambda lift - -object Test1 { - def main(args: Array[String]): Unit = { - List[args.type](args); - } - def foo[X]: Any = { - def bar(x: X) = List(x); - 0 - } -} - -//############################################################################ -// Test 2 - Local variables owned by other local variables - -class Test2_1(i: Int) { - val t = { - val x = { - val y = { - val z = i; - z; - }; - }; - }; - val x = { - val y = { - val z = i; - z; - }; - }; - val y = { - val z = i; - z; - }; - val z = i; -} - -class Test2_2(i: Int) { - { - val t = { - val x = { - val y = { - val z = i; - z; - }; - }; - }; - val x = { - val y = { - val z = i; - z; - }; - }; - val y = { - val z = i; - z; - }; - val z = i; - 0 - } -} - -class Test2_3() { - - def this(i: Int) = { - this(); - val t = { - val x = { - val y = { - val z = i; - z; - }; - }; - }; - val x = { - val y = { - val z = i; - z; - }; - }; - val y = { - val z = i; - z; - }; - val z = i; - } - - def test(i: Int): Int = { - val t = { - val x = { - val y = { - val z = i; - z; - }; - }; - }; - val x = { - val y = { - val z = i; - z; - }; - }; - val y = { - val z = i; - z; - }; - val z = i; - 0 - } - -} - -//############################################################################ -// Test 3 - Super Calls with Mixins - -class Test3Foo; - -trait Test3A[T] { - def fun: T = fun; -} - -class Test3B extends Test3A[Test3Foo]; - -trait Test3M extends Test3A[Test3Foo] { - override def fun: Test3Foo = super.fun; -} - -class Test3C extends Test3B with Test3M; - -//############################################################################ |