diff options
Diffstat (limited to 'tests/untried/pos/presuperContext.scala')
-rw-r--r-- | tests/untried/pos/presuperContext.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/pos/presuperContext.scala b/tests/untried/pos/presuperContext.scala new file mode 100644 index 000000000..cc3426307 --- /dev/null +++ b/tests/untried/pos/presuperContext.scala @@ -0,0 +1,13 @@ +class A { + class C extends { val x: A = this } with AnyRef +} + +class B(x: Int) + +class D { + class C(x: Int) extends B({val test: D = this; x}) { + def this() { + this({val test: D = this; 1}) + } + } +} |