summaryrefslogtreecommitdiff
path: root/test/pos/clsrefine.scala
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-01-19 09:25:20 +0000
committerpaltherr <paltherr@epfl.ch>2004-01-19 09:25:20 +0000
commit1dbc00126bf0e660b0286ac247271549158bcb65 (patch)
treefce1c2b6f71dd879b752edc54289386fb86942e1 /test/pos/clsrefine.scala
parenta7fc16dfe690cf0f0a7db36596c7e26a8c417f82 (diff)
downloadscala-1dbc00126bf0e660b0286ac247271549158bcb65.tar.gz
scala-1dbc00126bf0e660b0286ac247271549158bcb65.tar.bz2
scala-1dbc00126bf0e660b0286ac247271549158bcb65.zip
- Moved test/pos test/neg and test/new into tes...
- Moved test/pos test/neg and test/new into test/files
Diffstat (limited to 'test/pos/clsrefine.scala')
-rw-r--r--test/pos/clsrefine.scala33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/pos/clsrefine.scala b/test/pos/clsrefine.scala
deleted file mode 100644
index 56db9d4c13..0000000000
--- a/test/pos/clsrefine.scala
+++ /dev/null
@@ -1,33 +0,0 @@
-import scala._;
-
-package scalac.util {
-
-trait A {
- type X1, X2;
- val x1: X1, x2: X2;
-}
-trait B extends A {
- type Y;
- val y1: Y, y2: Y;
- type X1 = Y, X2 = Y;
- val x1 = y1, x2 = y2;
- def f(x: Y, xs: B): Unit = {}
- def g() = f(y1, this);
-}
-
-object test {
- val b: B { type Y = Int } = new B {
- type Y = Int;
- val y1 = 1, y2 = 1;
- }
- val a: A { type X1 = Int, X2 = Int } = b;
- val a1 = new A {
- type X1 = Int, X2 = String;
- val x1 = 1, x2 = "hello"
- }
- val b1 = new B {
- type Y = Any;
- val y1 = 1, y2 = "hello";
- }
-}
-} \ No newline at end of file