Proper implement 'classForImplicitThis'

This commit is contained in:
Mikhael Bogdanov
2019-07-18 14:47:57 +02:00
parent a9f0d1a53b
commit 74e49d91ca
9 changed files with 45 additions and 7 deletions
@@ -0,0 +1,12 @@
class Outer(val value: String) {
inner class Inner {
fun Outer.foo() = value
}
}
fun Outer.Inner.test() = Outer("OK").foo()
fun box(): String {
return Outer("Fail").Inner().test()
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class Base(val callback: () -> String)
class Outer {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
open class Base(val callback: () -> String)
class Outer {