NI: don't do substitution for unsupported callable descriptors to use as callable references
^KT-41729 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// Issue: KT-37736
|
||||
|
||||
internal class Z<K> {
|
||||
val map = HashMap<String, String>()
|
||||
inline fun compute(key: String, <!UNUSED_PARAMETER!>producer<!>: () -> String): String {
|
||||
return map.getOrPut(key, ::<!UNSUPPORTED, USAGE_IS_NOT_INLINABLE!>producer<!>)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user