Files
kotlin-fork/js/js.translator/testData/reservedWords/cases/delegatedFunIf.kt
T
Denis Zharkov 20d1d12f3b Revert "'yield' reserved as a keyword"
This reverts commit 434082cadb.
2016-06-08 18:53:16 +03:00

23 lines
382 B
Kotlin
Vendored

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