JS: move RTTI tests to proper location
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// NO_INLINE
|
||||
package foo
|
||||
|
||||
object Obj
|
||||
|
||||
private inline fun <reified T> check(a: Any): String {
|
||||
return if (a is T) "OK" else "fail"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var x: Any = Obj
|
||||
return check<Obj>(x)
|
||||
}
|
||||
Reference in New Issue
Block a user