4c69416f2b
Currently it's all about lambda parameters/destructuring entries #KT-14347 In Progress
9 lines
231 B
Kotlin
Vendored
9 lines
231 B
Kotlin
Vendored
fun foo1() : (Int) -> Int = { x: Int -> x }
|
|
|
|
fun foo() {
|
|
val h : (Int) -> Int = foo1();
|
|
h(1)
|
|
val m : (Int) -> Int = {<warning descr="[UNUSED_PARAMETER] Parameter 'a' is never used">a</warning> : Int -> 1}//foo1()
|
|
m(1)
|
|
}
|