Files
Victor Petukhov a84780fefb NI: Add regression test for KT-38799
The issue has been fixed by introducing the modified postponed arguments analysis (KT-37952)
2020-05-25 11:56:08 +03:00

12 lines
282 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER
fun main() {
fun foo(m: Map<String, (Array<Int>) -> Unit>) {}
fun mySort(a: Array<Int>) {}
foo(m = mapOf(
"mySort" to ::mySort,
"mergeSort" to { a: Array<Int> -> }
))
}