[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
@@ -3,12 +3,12 @@
class Qwe<T : Any>(val a: T?) {
fun test1(obj: Any) {
obj as Qwe<T>
obj <!UNCHECKED_CAST!>as Qwe<T><!>
check(obj.a)
}
fun test1(obj: Qwe<*>) {
obj as Qwe<T>
obj <!UNCHECKED_CAST!>as Qwe<T><!>
check(obj.a)
}
@@ -1,8 +0,0 @@
// Works already in M11
fun test(c : Class<*>) {
val sc = c as Class<String>
// No ambiguous overload
c.getAnnotations();
sc.getAnnotations();
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// Works already in M11
fun test(c : Class<*>) {