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

9 lines
247 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.getOrPut(key, ::<!UNSUPPORTED, USAGE_IS_NOT_INLINABLE!>producer<!>)
}
}