[FIR] Fix CAST_NEVER_SUCCEEDS for definitely not null types
This commit is contained in:
committed by
Space Team
parent
0efcad51e9
commit
df43226a08
+6
@@ -0,0 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
fun <T, K> test(x: T & Any) {
|
||||
x <!USELESS_CAST!>as (T & Any)<!>
|
||||
x <!UNCHECKED_CAST!>as (K & Any)<!>
|
||||
}
|
||||
Reference in New Issue
Block a user