Files
kotlin-fork/compiler/testData/codegen/box/closures/kt4137.kt
T
2018-06-28 12:26:41 +02:00

14 lines
211 B
Kotlin
Vendored

// IGNORE_BACKEND: 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"
}