e7287ba8f4
#KT-2242 Fixed
17 lines
254 B
Kotlin
17 lines
254 B
Kotlin
class A {
|
|
fun foo() = 1
|
|
}
|
|
fun apply(x: (A) -> Int) = 2
|
|
fun test() {
|
|
apply<selection>{it.foo()}</selection>
|
|
}
|
|
/*
|
|
class A {
|
|
fun foo() = 1
|
|
}
|
|
fun apply(x: (A) -> Int) = 2
|
|
fun test() {
|
|
val function: (A) -> Int = { it.foo() }
|
|
apply(function)
|
|
}
|
|
*/ |