Files
kotlin-fork/js/js.translator/testData/reservedWords/cases/delegatedVarInterface.kt
T
2015-09-22 15:00:38 +02:00

23 lines
407 B
Kotlin
Vendored

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