Files
kotlin-fork/js/js.translator/testData/reservedWords/cases/delegatedLabelWhile.kt
T

23 lines
390 B
Kotlin

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("while", { @`while` while (false) {} })
}
}
fun box(): String {
TestDelegate().test()
return "OK"
}