604be8e0c1
#KT-4119 Fixed
12 lines
224 B
Kotlin
12 lines
224 B
Kotlin
fun foo(f: (Int?) -> Int): Int {
|
|
return f(0)
|
|
}
|
|
|
|
fun box() : String {
|
|
fun Int?.plus(a:Int) : Int = a!! + 2
|
|
|
|
if (foo { it + 1} != 3) return "Fail 1"
|
|
if (foo { it plus 1} != 3) return "Fail 2"
|
|
|
|
return "OK"
|
|
} |