NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed and remember flexibility of type parameters based on flexibility of its upper bounds
^KT-32435 Fixed
This commit is contained in:
+1
-1
@@ -14,5 +14,5 @@ public class Matcher<T> {
|
||||
|
||||
// FILE: main.kt
|
||||
fun test(x: List<String>) {
|
||||
Assert.assertThat(x, Matcher.hasItem("abc"))
|
||||
Assert.<!INAPPLICABLE_CANDIDATE!>assertThat<!>(x, Matcher.hasItem("abc"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user