20d1d12f3b
This reverts commit 434082cadb.
26 lines
472 B
Kotlin
Vendored
26 lines
472 B
Kotlin
Vendored
package foo
|
|
|
|
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
|
|
|
interface Trait {
|
|
fun foo(`interface`: String)
|
|
}
|
|
|
|
class TraitImpl : Trait {
|
|
override fun foo(`interface`: String) {
|
|
assertEquals("123", `interface`)
|
|
testRenamed("interface", { `interface` })
|
|
}
|
|
}
|
|
|
|
class TestDelegate : Trait by TraitImpl() {
|
|
fun test() {
|
|
foo("123")
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
TestDelegate().test()
|
|
|
|
return "OK"
|
|
} |