Files
kotlin-fork/backend.native/tests/codegen/enum/vCallWithEntryClass.kt
T
2017-10-20 18:25:05 +03:00

19 lines
264 B
Kotlin

package codegen.enum.vCallWithEntryClass
import kotlin.test.*
enum class Zzz {
Z1 {
override fun f() = "z1"
},
Z2 {
override fun f() = "z2"
};
open fun f() = ""
}
@Test fun runTest() {
println(Zzz.Z1.f() + Zzz.Z2.f())
}