KT-3919 Automatic labeling of lambdas by receiving functions
#KT-3919 Fixed
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
fun f() {
|
||||
foo {(): Int ->
|
||||
return@foo 1
|
||||
}
|
||||
foo({(): Int ->
|
||||
return@foo 1
|
||||
}
|
||||
)
|
||||
foo(a = {(): Int ->
|
||||
return@foo 1
|
||||
})
|
||||
|
||||
foo {(): Int ->
|
||||
foo {
|
||||
(): Int ->
|
||||
return@foo 1
|
||||
}
|
||||
return@foo 1
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(<!UNUSED_PARAMETER!>a<!>: Any) {}
|
||||
|
||||
Reference in New Issue
Block a user