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

23 lines
388 B
Kotlin
Vendored

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