K2: Allow PCLA inference when a value parameter has a TV type

^KT-64877 Fixed
This commit is contained in:
Denis.Zharkov
2024-01-10 19:10:15 +01:00
committed by Space Team
parent b2ca19da73
commit 72b0372927
39 changed files with 272 additions and 44 deletions
@@ -1,7 +1,7 @@
// ISSUE: KT-53553
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: ANY
// IGNORE_BACKEND_K1: ANY
// REASON: red code (see corresponding diagnostic test)
fun box(): String {
@@ -0,0 +1,18 @@
class Controller<K>
fun <T> generate(lambda: Controller<T>.(T) -> Unit) {}
fun consume(f: Controller<String>) {}
fun consumeString(f: String) {}
fun box(): String {
generate {
consume(this)
}
generate {
consumeString(it)
}
return "OK"
}