[FIR] Add UNCHECKED_CAST

Regenerate diagnostics code
This commit is contained in:
Ivan Kochurkin
2021-09-16 23:24:58 +03:00
committed by TeamCityServer
parent 1fbccff1bd
commit d0a4ca199d
70 changed files with 118 additions and 933 deletions
@@ -9,12 +9,12 @@ fun test2() = J { x: String -> x }
fun test3() = H.bar { x: String -> x }
fun test4(a: Any) {
a as J<String>
a <!UNCHECKED_CAST!>as J<String><!>
H.bar(a)
}
fun test5(a: Any) {
a as (String) -> String
a <!UNCHECKED_CAST!>as (String) -> String<!>
H.bar(a)
}
@@ -23,7 +23,7 @@ fun <T> test6(a: (T) -> T) {
}
fun <T> test7(a: Any) {
a as (T) -> T
a <!UNCHECKED_CAST!>as (T) -> T<!>
H.bar(a)
}
@@ -55,4 +55,4 @@ public interface J2X<T3> extends J2<String, T3> {
public class H {
public static <X> void bar(J<X> j) {}
public static <Y> void bar2x(J2X<Y> j2x) {}
}
}