summaryrefslogtreecommitdiff
path: root/test/pos/vincent.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2004-01-07 15:28:48 +0000
committerMartin Odersky <odersky@gmail.com>2004-01-07 15:28:48 +0000
commit836f5fbd907fe00bd9bd3849f1d41b13c2afd53a (patch)
treeceda286a11d8f97234bb77634f8e21f23a795433 /test/pos/vincent.scala
parentdcac982fd6aefe45c6e91cb582044c54e40dee47 (diff)
downloadscala-836f5fbd907fe00bd9bd3849f1d41b13c2afd53a.tar.gz
scala-836f5fbd907fe00bd9bd3849f1d41b13c2afd53a.tar.bz2
scala-836f5fbd907fe00bd9bd3849f1d41b13c2afd53a.zip
*** empty log message ***
Diffstat (limited to 'test/pos/vincent.scala')
-rw-r--r--test/pos/vincent.scala21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/pos/vincent.scala b/test/pos/vincent.scala
deleted file mode 100644
index eed25eb84c..0000000000
--- a/test/pos/vincent.scala
+++ /dev/null
@@ -1,21 +0,0 @@
-object test {
-
- trait A { type T; }
-
- trait B { type T; }
-
- /** def functor(x: A): B { type T = x.T } */
- abstract class functor() {
- val arg: A;
- val res: B { type T = arg.T } =
- new B { type T = arg.T; };
- }
-
- val a = new A { type T = String };
- /** val b: B { type T = String } = functor(a) */
- val b: B { type T = String } = {
- val tmp = new functor() { val arg = a };
- tmp.res
- }
-
-}