Files
kotlin-fork/compiler/testData/codegen/box/closures/kt4137.kt
T
2019-11-19 11:00:09 +03:00

14 lines
215 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class A(val s: Int) {
}
infix fun Int.foo(s: Int): Int {
return this + s
}
open class B : A({ 1 foo 2} ())
fun box(): String {
return if (B().s == 3) "OK" else "Fail"
}