Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/inference/callableReferenceOnParameter.fir.kt
T

9 lines
252 B
Kotlin
Vendored

// Issue: KT-37736
internal class Z<K> {
val map = HashMap<String, String>()
inline fun compute(key: String, producer: () -> String): String {
return map.<!INAPPLICABLE_CANDIDATE!>getOrPut<!>(key, ::<!UNSUPPORTED!>producer<!>)
}
}