mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
12 lines
252 B
Kotlin
12 lines
252 B
Kotlin
package baz
|
|
|
|
fun test() {
|
|
<!NONE_APPLICABLE!>foo<!>(1) <!DANGLING_FUNCTION_LITERAL_ARGUMENT_SUSPECTED!>{}<!>
|
|
|
|
foo( <!NONE_APPLICABLE!>foo<!>(1) {} ) //here
|
|
}
|
|
|
|
fun foo(<!UNUSED_PARAMETER!>i<!>: Int) {}
|
|
|
|
fun foo() : (i : () -> Unit) -> Unit = {}
|