Extract diagnostics about references to variables to a separate one

Note that I've left in FIR everything as is to avoid non-trivial
refactoring that is required right now to report more specific diagnostics

 ^KT-59152
This commit is contained in:
Mikhail Zarechenskiy
2023-06-07 15:26:38 +02:00
committed by Space Team
parent 9cf40f8c2f
commit 1153238fd7
10 changed files with 20 additions and 12 deletions
@@ -3,6 +3,6 @@
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<!>)
return map.getOrPut(key, ::<!UNSUPPORTED_REFERENCES_TO_VARIABLES_AND_PARAMETERS, USAGE_IS_NOT_INLINABLE!>producer<!>)
}
}