Files
kotlin-fork/js/js.translator/testData/reservedWords/cases/delegatedValCase.kt
T
2015-04-29 16:50:22 +02:00

23 lines
377 B
Kotlin
Vendored

package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
val case: Int
}
class TraitImpl : Trait {
override val case: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("case", { case })
}
}
fun box(): String {
TestDelegate().test()
return "OK"
}