[FIR] Add CAST_NEVER_SUCCEEDS

This commit is contained in:
Ivan Kochurkin
2021-09-16 20:58:52 +03:00
committed by TeamCityServer
parent 4ca757446a
commit 2b5524b18f
42 changed files with 206 additions and 273 deletions
@@ -6,7 +6,7 @@
fun case_1(x: Interface1) = x
fun case_1(x: Interface2) = x
fun case_1() {
val x: Interface1 = null as Interface1
val x: Interface1 = null <!CAST_NEVER_SUCCEEDS!>as<!> Interface1
x as Interface2
<!OVERLOAD_RESOLUTION_AMBIGUITY!>case_1<!>(<!DEBUG_INFO_EXPRESSION_TYPE("Interface1 & Interface2 & Interface1")!>x<!>)
}