Files
kotlin/compiler/testData/codegen/box/callableReference/function/innerClassConstructorWithTwoReceivers.kt

20 lines
270 B
Kotlin
Vendored

abstract class A {
inner class InnerInA {
fun returnOk() = "OK"
}
}
class B : A()
fun foo(a: A): String {
if (a is B) {
val v = a::InnerInA
return v().returnOk()
}
return "error"
}
fun box(): String {
return foo(B())
}