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

27 lines
428 B
Kotlin
Vendored

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