[FIR] Use isSubtypeOfClass with platform types mapping instead of isSubtypeOf during checking CAST_NEVER_SUCCEEDS
Refactor and generalize code ^KT-62783 Fixed
This commit is contained in:
committed by
Space Team
parent
0935e2b270
commit
3b9095a5ab
Vendored
+1
-1
@@ -5,5 +5,5 @@ class Foo1<A> : Foo<Int>()
|
||||
class Foo2 : Foo<Int>()
|
||||
|
||||
fun process(foo: Foo<Long>) {
|
||||
foo <!CAST_NEVER_SUCCEEDS!>as<!> Foo1<*>
|
||||
foo as Foo1<*>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user