[Wasm] Move external RTT checkers to web.common and reuse in Wasm
#KT-56849
This commit is contained in:
committed by
Space Team
parent
d219d5380b
commit
cf3b293072
+8
@@ -0,0 +1,8 @@
|
||||
// FIR_IDENTICAL
|
||||
// DIAGNOSTICS: +UNCHECKED_CAST_TO_EXTERNAL_INTERFACE
|
||||
|
||||
external interface I
|
||||
|
||||
fun box(a: Any, b: Any): Pair<I, I?> {
|
||||
return Pair(<!UNCHECKED_CAST_TO_EXTERNAL_INTERFACE!>a as I<!>, <!UNCHECKED_CAST_TO_EXTERNAL_INTERFACE!>b as? I<!>)
|
||||
}
|
||||
Reference in New Issue
Block a user