Files
kotlin-fork/compiler/testData/codegen/box/properties/kt1170.kt
T
Alexander Udalov 41a416da60 Move blackBoxFile() testData to box/ directory
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00

17 lines
364 B
Kotlin

public abstract class BaseClass() {
open val kind : String = "BaseClass "
fun getKindValue() : String {
return kind
}
}
public class Subclass : BaseClass() {
override val kind : String = "Subclass "
}
fun box(): String {
val r = Subclass().getKindValue() + Subclass().kind
return if(r == "Subclass Subclass ") "OK" else "fail"
}