summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/bug210.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/pos/bug210.scala')
-rwxr-xr-xtest-nsc/files/pos/bug210.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test-nsc/files/pos/bug210.scala b/test-nsc/files/pos/bug210.scala
new file mode 100755
index 0000000000..20450335f4
--- /dev/null
+++ b/test-nsc/files/pos/bug210.scala
@@ -0,0 +1,17 @@
+trait Lang1 {
+ trait Exp;
+ trait Visitor { def f(left: Exp): unit; }
+ class Eval1: Visitor extends Visitor {
+ def f(left: Exp) = ();
+ }
+}
+
+trait Lang2 extends Lang1 {
+ class Eval2: Visitor extends Eval1;
+}
+/*
+object Main with Application {
+ val lang2 = new Lang2 {};
+ val eval = new lang2.Eval2;
+}
+*/