Files
kotlin-fork/compiler/testData/codegen/box/closures/kt4137.kt
T
2018-08-09 14:22:50 +03:00

13 lines
185 B
Kotlin
Vendored

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"
}