diff options
author | Martin Odersky <odersky@gmail.com> | 2003-02-14 14:39:24 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-02-14 14:39:24 +0000 |
commit | 21b147f7caf8b558b00044f493cf9da392c7e30e (patch) | |
tree | a964142a10a16e7c9a64b03e44fdde1d9f1b63be /test/pos/abstract.scala | |
parent | fd3f10df3cd88fe3b970f8312a479ae63f0803b8 (diff) | |
download | scala-21b147f7caf8b558b00044f493cf9da392c7e30e.tar.gz scala-21b147f7caf8b558b00044f493cf9da392c7e30e.tar.bz2 scala-21b147f7caf8b558b00044f493cf9da392c7e30e.zip |
Initial version.
Diffstat (limited to 'test/pos/abstract.scala')
-rw-r--r-- | test/pos/abstract.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pos/abstract.scala b/test/pos/abstract.scala new file mode 100644 index 0000000000..f51ae63e6b --- /dev/null +++ b/test/pos/abstract.scala @@ -0,0 +1,9 @@ +trait C { + type t; + def copy(x: t): t = x; +} + +class D() extends C { + type t = Int; + System.out.println(copy(1)); +} |