JS: prohibit is checks against native interfaces. Warn about casts to native interfaces. Fix #KT-14037, fix #KT-14038
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
@native interface I
|
||||
|
||||
@native interface J
|
||||
|
||||
fun box(a: Any) = when (a) {
|
||||
<!CANNOT_CHECK_FOR_NATIVE_INTERFACE!>is I<!> -> 0
|
||||
<!CANNOT_CHECK_FOR_NATIVE_INTERFACE!>!is J<!> -> 1
|
||||
else -> 2
|
||||
}
|
||||
Reference in New Issue
Block a user