KT-37448 'this' in delegating constructor call may refer to outer object
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
open class Base(val s: String)
|
||||
|
||||
object Host {
|
||||
class Derived : Base(this.foo())
|
||||
|
||||
fun foo() = "OK"
|
||||
}
|
||||
|
||||
fun box() = Host.Derived().s
|
||||
Reference in New Issue
Block a user