Proper implement 'classForImplicitThis'
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
open class Base(val callback: () -> String)
|
||||
|
||||
class Outer {
|
||||
|
||||
compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInInlineLambda2.kt
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
open class Base(val callback: () -> String)
|
||||
|
||||
class Outer {
|
||||
|
||||
Reference in New Issue
Block a user