Files
kotlin/compiler/testData/codegen/box/callableReference/function/innerConstructorFromTopLevelOneStringArg.kt
2018-06-28 12:26:41 +02:00

12 lines
265 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class A {
inner class Inner(val result: Int)
}
fun box(): String {
val result = (A::Inner)((::A)(), 111).result + (A::Inner)(A(), 222).result
if (result != 333) return "Fail $result"
return "OK"
}