Remove tests on RTTI

It was never implemented
This commit is contained in:
Alexander Udalov
2013-01-23 21:03:56 +04:00
committed by Alexander Udalov
parent 0df71bd696
commit de37f73c8d
19 changed files with 10 additions and 481 deletions
@@ -1,13 +0,0 @@
abstract open class Default {
abstract fun defaultValue(): Int
}
class MyInt() {
class object : Default() {
override fun defaultValue(): Int = 610
}
}
fun toDefault<T: Any>(t: T) where class object T: Default = T.defaultValue()
fun box(): String = if (toDefault<MyInt>(MyInt()) == 610) "OK" else "fail"