JS: move RTTI tests to proper location

This commit is contained in:
Alexey Andreev
2016-09-28 15:44:07 +03:00
parent c1e13cc788
commit 9797a1c35c
16 changed files with 74 additions and 77 deletions
+13
View File
@@ -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)
}