[FIR] Add UNCHECKED_CAST
Regenerate diagnostics code
This commit is contained in:
committed by
TeamCityServer
parent
1fbccff1bd
commit
d0a4ca199d
+4
-4
@@ -37,18 +37,18 @@ fun test5(a: Any) {
|
||||
|
||||
fun test5x(a: Any) {
|
||||
if (a is Runnable) {
|
||||
a as () -> Unit
|
||||
a <!UNCHECKED_CAST!>as () -> Unit<!>
|
||||
J().run1(a)
|
||||
}
|
||||
}
|
||||
|
||||
fun test6(a: Any) {
|
||||
a as () -> Unit
|
||||
a <!UNCHECKED_CAST!>as () -> Unit<!>
|
||||
J().run1(a)
|
||||
}
|
||||
|
||||
fun test7(a: (Int) -> Int) {
|
||||
a as () -> Unit
|
||||
a <!UNCHECKED_CAST!>as () -> Unit<!>
|
||||
J().run1(a)
|
||||
}
|
||||
|
||||
@@ -69,4 +69,4 @@ public class J {
|
||||
public void run2(Runnable r1, Runnable r2) {}
|
||||
|
||||
public static <T> T id(T x) { return x; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user