[FIR] Add CAST_NEVER_SUCCEEDS
This commit is contained in:
committed by
TeamCityServer
parent
4ca757446a
commit
2b5524b18f
@@ -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<!>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user