FIR: use captureFromTypeParameterUpperBoundIfNeeded for argument types
#KT-48161 Fixed
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
interface Inv<T>
|
||||
|
||||
fun <Y: X, X : Inv<out String>> foo(x: X, y: Y) {
|
||||
val rX = bar(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
|
||||
rX.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
val rX = bar(x)
|
||||
rX.length
|
||||
|
||||
val rY = bar(<!ARGUMENT_TYPE_MISMATCH!>y<!>)
|
||||
rY.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
|
||||
Reference in New Issue
Block a user