Rename *.jet -> *.kt in codegen tests

This commit is contained in:
Alexander Udalov
2013-01-22 21:22:06 +04:00
committed by Alexander Udalov
parent b0aa094cf8
commit 99827d10a8
226 changed files with 193 additions and 193 deletions
@@ -0,0 +1,13 @@
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"