Files
kotlin-fork/js/js.translator/testFiles/trait/cases/example.kt
T
2012-02-27 21:55:58 +04:00

13 lines
176 B
Kotlin

package foo
trait AL {
fun get(index: Int) : Any? = null
}
class SmartArrayList() : AL {
}
fun box() : Boolean {
val c = SmartArrayList()
return (null == c.get(0))
}