JS/RTTI. Fix build and tests

This commit is contained in:
Zalim Bashorov
2016-04-11 21:23:12 +03:00
committed by Alexey Andreev
parent 9bb60b48b2
commit 3a87049359
20 changed files with 105 additions and 89 deletions
@@ -2,12 +2,12 @@ package foo
// CHECK_NOT_CALLED: test
trait A
interface A
class AImpl: A
inline
fun test<reified T>(x: Any?): T = x as T
fun <reified T> test(x: Any?): T = x as T
fun box(): String {
var a: A = AImpl()
@@ -18,4 +18,4 @@ fun box(): String {
failsClassCast("test(object{})") { test<A>(object{}) }
return "OK"
}
}