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

26 lines
402 B
Kotlin
Vendored

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