Files
kotlin-fork/backend.native/tests/external/codegen/box/closures/kt4137.kt
T
2017-03-13 15:31:46 +03:00

13 lines
185 B
Kotlin

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