Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/inference/callableReferenceOnParameter.fir.kt
T
2020-09-11 12:13:33 +03:00

9 lines
261 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, <!UNRESOLVED_REFERENCE!>::producer<!>)
}
}