diff options
Diffstat (limited to 'tests/pending/pos/presuperContext.scala')
-rw-r--r-- | tests/pending/pos/presuperContext.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/pending/pos/presuperContext.scala b/tests/pending/pos/presuperContext.scala new file mode 100644 index 000000000..ae677c08e --- /dev/null +++ b/tests/pending/pos/presuperContext.scala @@ -0,0 +1,18 @@ +class A { + class C extends AnyRef { +// TODO NEEDS MANUAL CHANGE (early initializers) +// BEGIN copied early initializers +val x: A = this +// END copied early initializers +} +} + +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}) + } + } +} |