[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
@@ -6,7 +6,7 @@ fun List<String>.modify() {
}
fun Any.modify() {
(<!VARIABLE_EXPECTED!>this as List<Int><!>) += 42
(<!VARIABLE_EXPECTED!>this <!UNCHECKED_CAST!>as List<Int><!><!>) += 42
}
operator fun <T> Set<T>.plusAssign(x: T) {}
@@ -17,5 +17,5 @@ fun Set<String>.modify() {
}
fun Any.modifySet() {
(this as Set<Int>) += 42
(this <!UNCHECKED_CAST!>as Set<Int><!>) += 42
}