Files
kotlin-fork/js/js.translator/testData/box/trait/example.kt
T
2016-09-29 12:00:43 +03:00

13 lines
208 B
Kotlin
Vendored

package foo
interface AL {
fun get(index: Int): Any? = null
}
class SmartArrayList() : AL {
}
fun box(): String {
val c = SmartArrayList()
return if (null == c.get(0)) return "OK" else "fail"
}