JS/RTTI: fix cast to Any
This commit is contained in:
committed by
Alexey Andreev
parent
2b3ebc7e9f
commit
38b0effe15
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
fun box(): String {
|
||||
val x = 0
|
||||
val y = 1
|
||||
val z = 2
|
||||
val xs = arrayListOf(z, y, x)
|
||||
xs.remove(x as Any)
|
||||
assertEquals(listOf(z, y), xs)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user