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

27 lines
465 B
Kotlin
Vendored

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