Turned off lowering of outer class for inner class constructors.

Constructors of inner classes already have access to their outer class
through its dispatch receiver parameter.
This commit is contained in:
Igor Chevdar
2017-03-03 14:49:59 +03:00
parent 361e94fd1a
commit 8c1c9f5660
3 changed files with 62 additions and 9 deletions
@@ -0,0 +1,20 @@
class Outer(val x: Int) {
inner class Inner() {
inner class InnerInner() {
init {
println(x)
}
lateinit var s: String
constructor(s: String) : this() {
this.s = s
}
}
}
}
fun main(args : Array<String>) {
Outer(42).Inner().InnerInner("zzz")
}