Fixed test data which was incorrect (no nested classes inside inner class allowed!)

This commit is contained in:
Valentin Kipyatkov
2015-02-12 11:26:36 +03:00
parent 3710d4105c
commit d2f11cdc05
2 changed files with 2 additions and 8 deletions
@@ -3,12 +3,11 @@ package to
import a.with import a.with
import a.Outer import a.Outer
fun f(p1: Outer.Nested.NN, p2: Outer.Nested.NI, p3: Outer.Inner.IN, p4: Outer.Inner.II) { fun f(p1: Outer.Nested.NN, p2: Outer.Nested.NI, p3: Outer.Inner.II) {
Outer.Nested.NN2() Outer.Nested.NN2()
with(Outer.Nested()) { with(Outer.Nested()) {
NI2() NI2()
} }
Outer.Inner.IN2()
with(Outer().Inner()) { with(Outer().Inner()) {
II2() II2()
} }
@@ -16,10 +16,6 @@ class Outer {
} }
inner class Inner { inner class Inner {
class IN {
}
class IN2 {
}
inner class II { inner class II {
} }
inner class II2 { inner class II2 {
@@ -29,12 +25,11 @@ class Outer {
fun <T> with(v: T, body: T.() -> Unit) = v.body() fun <T> with(v: T, body: T.() -> Unit) = v.body()
<selection>fun f(p1: NN, p2: NI, p3: IN, p4: II) { <selection>fun f(p1: NN, p2: NI, p3: II) {
NN2() NN2()
with(Outer.Nested()) { with(Outer.Nested()) {
NI2() NI2()
} }
IN2()
with(Outer().Inner()) { with(Outer().Inner()) {
II2() II2()
} }