Humanize type mismatch diagnostic caused by type projections
#KT-10581 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
interface A<T>
|
||||
interface B<E> {
|
||||
fun foo(x: A<in E>)
|
||||
}
|
||||
|
||||
fun foo(x: B<in CharSequence>, y: A<CharSequence>) {
|
||||
x.foo(<!TYPE_MISMATCH_DUE_TO_TYPE_PROJECTIONS!>y<!>)
|
||||
}
|
||||
Reference in New Issue
Block a user