summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/abstract.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/pos/abstract.scala')
-rwxr-xr-xtest-nsc/files/pos/abstract.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-nsc/files/pos/abstract.scala b/test-nsc/files/pos/abstract.scala
new file mode 100755
index 0000000000..533f996931
--- /dev/null
+++ b/test-nsc/files/pos/abstract.scala
@@ -0,0 +1,9 @@
+abstract class C() {
+ type t;
+ def copy(x: t): t = x;
+}
+
+class D() extends C() {
+ type t = Int;
+ System.out.println(copy(1));
+}