4042214bb2
- The inspection now works in more cases, so the test data had to be updated accordingly
13 lines
278 B
Kotlin
Vendored
13 lines
278 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, { x: Int -> this.toDouble(x) })
|
|
}
|
|
} |