summaryrefslogtreecommitdiff
path: root/test/files/pos/context.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/context.scala')
-rw-r--r--test/files/pos/context.scala42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/files/pos/context.scala b/test/files/pos/context.scala
new file mode 100644
index 0000000000..5706918ef9
--- /dev/null
+++ b/test/files/pos/context.scala
@@ -0,0 +1,42 @@
+class Context {
+ object symswrap extends SymsWrapper {
+ val context: Context.this.type = Context.this
+ }
+ object typswrap extends TypsWrapper {
+ val context: Context.this.type = Context.this
+ }
+ object syms extends symswrap.Syms;
+ object typs extends typswrap.Typs;
+}
+
+abstract class SymsWrapper {
+ val context: Context;
+ import context._;
+
+ class Syms: context.syms.type {
+ abstract class Sym: context.syms.Sym {
+ def typ: typs.Typ;
+ def sym: Sym = typ.sym;
+ }
+ }
+}
+
+abstract class TypsWrapper {
+ val context: Context;
+ import context._;
+
+ class Typs: context.typs.type {
+ abstract class Typ {
+ def sym: syms.Sym;
+ def typ: Typ = sym.typ;
+ }
+ }
+}
+
+============================================================
+
+class Context {
+
+
+}
+