'yield' reserved as a keyword

This commit is contained in:
Andrey Breslav
2015-12-08 18:31:20 +03:00
parent e6bba01798
commit 434082cadb
123 changed files with 1138 additions and 1073 deletions
@@ -0,0 +1,26 @@
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"
}