Considering variances when checking for erased casts.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
fun f(a: MutableList<out Number>) = a is MutableList<out Hashable>
|
||||
@@ -0,0 +1 @@
|
||||
fun f(a: MutableList<String>) = a is MutableList<out CharSequence>
|
||||
@@ -0,0 +1 @@
|
||||
fun f(a: List<Number>) = a is List<Hashable>
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun f(a: MutableList<String>) = a is <!CANNOT_CHECK_FOR_ERASED!>MutableList<CharSequence><!>
|
||||
@@ -0,0 +1 @@
|
||||
fun f(a: MutableList<in String>) = a is <!CANNOT_CHECK_FOR_ERASED!>MutableList<CharSequence><!>
|
||||
@@ -0,0 +1 @@
|
||||
fun f(a: List<Hashable>) = a is <!CANNOT_CHECK_FOR_ERASED!>List<Number><!>
|
||||
Reference in New Issue
Block a user