K2: Allow PCLA inference when a value parameter has a TV type
^KT-64877 Fixed
This commit is contained in:
committed by
Space Team
parent
b2ca19da73
commit
72b0372927
Vendored
+2
-2
@@ -8,9 +8,9 @@ class GenericController<T> {
|
||||
|
||||
fun <S> generate(g: suspend GenericController<S>.(S) -> Unit): S = TODO()
|
||||
|
||||
val test1 = generate <!CANNOT_INFER_PARAMETER_TYPE!>{
|
||||
val test1 = generate {
|
||||
yield(4)
|
||||
}<!>
|
||||
}
|
||||
|
||||
val test2 = generate<Int> {
|
||||
yield(4)
|
||||
|
||||
Reference in New Issue
Block a user