Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/properties/kt1168.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +03:00

16 lines
370 B
Kotlin

public abstract class BaseClass() {
protected abstract val kind : String
protected open val kind2 : String = " kind1"
fun debug() = kind + kind2
}
public class Subclass : BaseClass() {
override val kind : String = "Physical"
override val kind2 : String = " kind2"
}
fun box():String = if(Subclass().debug() == "Physical kind2") "OK" else "fail"