Introduce FirInitializerTypeMismatchChecker
This commit is contained in:
+1
-1
@@ -6,5 +6,5 @@ interface B : A, X<Int>
|
||||
|
||||
fun foo(x: B) {
|
||||
// Checks that when checking subtypes we search closes corresponding constructor (e.g. with BFS)
|
||||
val y: X<Int> = x
|
||||
val y: X<Int> = <!INITIALIZER_TYPE_MISMATCH!>x<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user