FIR: Fix overloading by type-arguments
In K1, upper bound violated causes candidate to have lower applicability due to constraint errors, in K2 however constraint errors has to be reported explicitly
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ fun test5() {
|
||||
fun <R: Any> R?.sure() : R = this!!
|
||||
|
||||
fun <T> test6(l: List<T>?) {
|
||||
l.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>sure<!><T>()
|
||||
l.sure<<!UPPER_BOUND_VIOLATED!>T<!>>()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user