f79b282c60
#KT-32702 fixed #KT-19327 fixed
13 lines
290 B
Kotlin
Vendored
13 lines
290 B
Kotlin
Vendored
internal class Test {
|
|
fun <A, B> foo(value: A, `fun`: FunctionalI<A, B>): B {
|
|
return `fun`.apply(value)
|
|
}
|
|
|
|
fun toDouble(x: Int): Double {
|
|
return x.toDouble()
|
|
}
|
|
|
|
fun nya(): Double {
|
|
return foo(1, FunctionalI { x: Int -> this.toDouble(x) })
|
|
}
|
|
} |