[FIR] Implement ASSIGNMENT_TYPE_MISMATCH, RESULT_TYPE_MISMATCH diagnostics, fix tests
This commit is contained in:
committed by
TeamCityServer
parent
aa70c952eb
commit
e57108d4e8
+2
-2
@@ -12,7 +12,7 @@ fun <T : CharSequence?> foo(x: T) {
|
||||
if (x != null) {}
|
||||
|
||||
y1 = x
|
||||
y2 = x
|
||||
y2 = <!ASSIGNMENT_TYPE_MISMATCH!>x<!>
|
||||
|
||||
bar1(x)
|
||||
bar1<CharSequence>(x)
|
||||
@@ -31,7 +31,7 @@ fun <T : CharSequence?> foo(x: T) {
|
||||
|
||||
if (x is CharSequence) {
|
||||
y1 = x
|
||||
y2 = x
|
||||
y2 = <!ASSIGNMENT_TYPE_MISMATCH!>x<!>
|
||||
|
||||
bar1(x)
|
||||
bar2(x)
|
||||
|
||||
@@ -24,10 +24,10 @@ class A<T : CharSequence?, E1 : T, E2: T?> {
|
||||
}
|
||||
|
||||
if (1 == 1) {
|
||||
t = tN
|
||||
t = <!ASSIGNMENT_TYPE_MISMATCH!>tN<!>
|
||||
}
|
||||
|
||||
t = y
|
||||
t = <!ASSIGNMENT_TYPE_MISMATCH!>y<!>
|
||||
|
||||
if (y != null) {
|
||||
t = y
|
||||
|
||||
Reference in New Issue
Block a user