Files
kotlin-fork/compiler/testData/codegen/box/callableReference/innerConstructorFromExtension.kt
T
Alexander Udalov 054e5fb5e7 Codegen for callable reference expressions
#KT-1183 In Progress
2013-04-22 17:59:32 +04:00

15 lines
249 B
Kotlin

class A {
inner class Inner {
val o = 111
val k = 222
}
}
fun A.foo() = this.(A::Inner)().o + this.(::Inner)().k
fun box(): String {
val result = A().foo()
if (result != 333) return "Fail $result"
return "OK"
}