Minor: fix testdata files which were accidentally reformatted
This commit is contained in:
@@ -7,9 +7,7 @@ interface Trait {
|
||||
}
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun catch() {
|
||||
catch()
|
||||
}
|
||||
override fun catch() { catch() }
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -22,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -7,9 +7,7 @@ interface Trait {
|
||||
}
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun const() {
|
||||
const()
|
||||
}
|
||||
override fun const() { const() }
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -22,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -7,9 +7,7 @@ interface Trait {
|
||||
}
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun `null`() {
|
||||
`null`()
|
||||
}
|
||||
override fun `null`() { `null`() }
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -22,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -7,9 +7,7 @@ interface Trait {
|
||||
}
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun `package`() {
|
||||
`package`()
|
||||
}
|
||||
override fun `package`() { `package`() }
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -22,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,9 @@ interface Trait {
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun foo(debugger: String) {
|
||||
assertEquals("123", debugger)
|
||||
testRenamed("debugger", { debugger })
|
||||
}
|
||||
assertEquals("123", debugger)
|
||||
testRenamed("debugger", { debugger })
|
||||
}
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -23,4 +23,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,9 @@ interface Trait {
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun foo(default: String) {
|
||||
assertEquals("123", default)
|
||||
testRenamed("default", { default })
|
||||
}
|
||||
assertEquals("123", default)
|
||||
testRenamed("default", { default })
|
||||
}
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -23,4 +23,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,9 @@ interface Trait {
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun foo(`return`: String) {
|
||||
assertEquals("123", `return`)
|
||||
testRenamed("return", { `return` })
|
||||
}
|
||||
assertEquals("123", `return`)
|
||||
testRenamed("return", { `return` })
|
||||
}
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -23,4 +23,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,9 @@ interface Trait {
|
||||
|
||||
class TraitImpl : Trait {
|
||||
override fun foo(`super`: String) {
|
||||
assertEquals("123", `super`)
|
||||
testRenamed("super", { `super` })
|
||||
}
|
||||
assertEquals("123", `super`)
|
||||
testRenamed("super", { `super` })
|
||||
}
|
||||
}
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
@@ -23,4 +23,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,7 @@ class TraitImpl : Trait {
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
fun test() {
|
||||
testRenamed("delete", {
|
||||
delete@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("delete", { delete@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,7 @@ class TraitImpl : Trait {
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
fun test() {
|
||||
testRenamed("enum", {
|
||||
enum@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("enum", { enum@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,7 @@ class TraitImpl : Trait {
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
fun test() {
|
||||
testRenamed("this", {
|
||||
`this`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("this", { `this`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,7 @@ class TraitImpl : Trait {
|
||||
|
||||
class TestDelegate : Trait by TraitImpl() {
|
||||
fun test() {
|
||||
testRenamed("throw", {
|
||||
`throw`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("throw", { `throw`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +20,4 @@ fun box(): String {
|
||||
TestDelegate().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,7 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun `break`() {
|
||||
`break`()
|
||||
}
|
||||
fun `break`() { `break`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("break", { ::`break` })
|
||||
@@ -18,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,7 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun `class`() {
|
||||
`class`()
|
||||
}
|
||||
fun `class`() { `class`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("class", { ::`class` })
|
||||
@@ -18,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,7 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun function() {
|
||||
function()
|
||||
}
|
||||
fun function() { function() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("function", { ::function })
|
||||
@@ -18,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,7 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun implements() {
|
||||
implements()
|
||||
}
|
||||
fun implements() { implements() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("implements", { ::implements })
|
||||
@@ -18,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun foo(`continue`: String) {
|
||||
assertEquals("123", `continue`)
|
||||
testRenamed("continue", { `continue` })
|
||||
}
|
||||
assertEquals("123", `continue`)
|
||||
testRenamed("continue", { `continue` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +18,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun foo(`do`: String) {
|
||||
assertEquals("123", `do`)
|
||||
testRenamed("do", { `do` })
|
||||
}
|
||||
assertEquals("123", `do`)
|
||||
testRenamed("do", { `do` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +18,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun foo(import: String) {
|
||||
assertEquals("123", import)
|
||||
testRenamed("import", { import })
|
||||
}
|
||||
assertEquals("123", import)
|
||||
testRenamed("import", { import })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +18,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
fun foo(instanceof: String) {
|
||||
assertEquals("123", instanceof)
|
||||
testRenamed("instanceof", { instanceof })
|
||||
}
|
||||
assertEquals("123", instanceof)
|
||||
testRenamed("instanceof", { instanceof })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +18,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("else", {
|
||||
`else`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("else", { `else`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("false", {
|
||||
`false`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("false", { `false`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("let", {
|
||||
let@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("let", { let@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,10 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("new", {
|
||||
new@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("new", { new@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val eval: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val export: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val `true`: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
val `try`: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
var extends: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
var finally: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
var `var`: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ package foo
|
||||
|
||||
enum class Foo {
|
||||
BAR;
|
||||
|
||||
var `while`: Int = 0
|
||||
|
||||
fun test() {
|
||||
@@ -16,4 +15,4 @@ fun box(): String {
|
||||
Foo.BAR.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
class TestClass {
|
||||
fun arguments() {
|
||||
arguments()
|
||||
}
|
||||
fun arguments() { arguments() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("arguments", { ::arguments })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
class TestClass {
|
||||
fun NaN() {
|
||||
NaN()
|
||||
}
|
||||
fun NaN() { NaN() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("NaN", { ::NaN })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
fun foo(await: String) {
|
||||
assertEquals("123", await)
|
||||
testRenamed("await", { await })
|
||||
}
|
||||
assertEquals("123", await)
|
||||
testRenamed("await", { await })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
fun foo(case: String) {
|
||||
assertEquals("123", case)
|
||||
testRenamed("case", { case })
|
||||
}
|
||||
assertEquals("123", case)
|
||||
testRenamed("case", { case })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
fun foo(`true`: String) {
|
||||
assertEquals("123", `true`)
|
||||
testRenamed("true", { `true` })
|
||||
}
|
||||
assertEquals("123", `true`)
|
||||
testRenamed("true", { `true` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
fun foo(`try`: String) {
|
||||
assertEquals("123", `try`)
|
||||
testRenamed("try", { `try` })
|
||||
}
|
||||
assertEquals("123", `try`)
|
||||
testRenamed("try", { `try` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
class TestClass {
|
||||
fun `this`() {
|
||||
`this`()
|
||||
}
|
||||
fun `this`() { `this`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("this", { ::`this` })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
class TestClass {
|
||||
fun `throw`() {
|
||||
`throw`()
|
||||
}
|
||||
fun `throw`() { `throw`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("throw", { ::`throw` })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("catch", {
|
||||
catch@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("catch", { catch@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("const", {
|
||||
const@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("const", { const@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("var", {
|
||||
`var`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("var", { `var`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("while", {
|
||||
`while`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("while", { `while`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestClass().test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,7 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun `else`() {
|
||||
`else`()
|
||||
}
|
||||
fun `else`() { `else`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("else", { ::`else` })
|
||||
@@ -18,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,7 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun eval() {
|
||||
eval()
|
||||
}
|
||||
fun eval() { eval() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("eval", { ::eval })
|
||||
@@ -18,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+2
-4
@@ -4,9 +4,7 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun export() {
|
||||
export()
|
||||
}
|
||||
fun export() { export() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("export", { ::export })
|
||||
@@ -18,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,7 @@ package foo
|
||||
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun `false`() {
|
||||
`false`()
|
||||
}
|
||||
fun `false`() { `false`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("false", { ::`false` })
|
||||
@@ -18,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -5,9 +5,9 @@ package foo
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun foo(extends: String) {
|
||||
assertEquals("123", extends)
|
||||
testRenamed("extends", { extends })
|
||||
}
|
||||
assertEquals("123", extends)
|
||||
testRenamed("extends", { extends })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +19,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -5,9 +5,9 @@ package foo
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun foo(finally: String) {
|
||||
assertEquals("123", finally)
|
||||
testRenamed("finally", { finally })
|
||||
}
|
||||
assertEquals("123", finally)
|
||||
testRenamed("finally", { finally })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +19,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -5,9 +5,9 @@ package foo
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun foo(`for`: String) {
|
||||
assertEquals("123", `for`)
|
||||
testRenamed("for", { `for` })
|
||||
}
|
||||
assertEquals("123", `for`)
|
||||
testRenamed("for", { `for` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +19,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -5,9 +5,9 @@ package foo
|
||||
class TestClass {
|
||||
companion object {
|
||||
fun foo(`if`: String) {
|
||||
assertEquals("123", `if`)
|
||||
testRenamed("if", { `if` })
|
||||
}
|
||||
assertEquals("123", `if`)
|
||||
testRenamed("if", { `if` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -19,4 +19,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+2
-5
@@ -7,10 +7,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("function", {
|
||||
function@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("function", { function@ while (false) {} })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+2
-5
@@ -7,10 +7,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("implements", {
|
||||
implements@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("implements", { implements@ while (false) {} })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -7,10 +7,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("in", {
|
||||
`in`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("in", { `in`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+2
-5
@@ -7,10 +7,7 @@ class TestClass {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("interface", {
|
||||
`interface`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("interface", { `interface`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,4 +16,4 @@ fun box(): String {
|
||||
TestClass.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
object TestObject {
|
||||
fun foo(public: String) {
|
||||
assertEquals("123", public)
|
||||
testRenamed("public", { public })
|
||||
}
|
||||
assertEquals("123", public)
|
||||
testRenamed("public", { public })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
object TestObject {
|
||||
fun foo(static: String) {
|
||||
assertEquals("123", static)
|
||||
testRenamed("static", { static })
|
||||
}
|
||||
assertEquals("123", static)
|
||||
testRenamed("static", { static })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
object TestObject {
|
||||
fun foo(`true`: String) {
|
||||
assertEquals("123", `true`)
|
||||
testRenamed("true", { `true` })
|
||||
}
|
||||
assertEquals("123", `true`)
|
||||
testRenamed("true", { `true` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,9 @@ package foo
|
||||
|
||||
object TestObject {
|
||||
fun foo(`try`: String) {
|
||||
assertEquals("123", `try`)
|
||||
testRenamed("try", { `try` })
|
||||
}
|
||||
assertEquals("123", `try`)
|
||||
testRenamed("try", { `try` })
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo("123")
|
||||
@@ -17,4 +17,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
object TestObject {
|
||||
fun private() {
|
||||
private()
|
||||
}
|
||||
fun private() { private() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("private", { ::private })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
object TestObject {
|
||||
fun protected() {
|
||||
protected()
|
||||
}
|
||||
fun protected() { protected() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("protected", { ::protected })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
object TestObject {
|
||||
fun `this`() {
|
||||
`this`()
|
||||
}
|
||||
fun `this`() { `this`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("this", { ::`this` })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,7 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
object TestObject {
|
||||
fun `throw`() {
|
||||
`throw`()
|
||||
}
|
||||
fun `throw`() { `throw`() }
|
||||
|
||||
fun test() {
|
||||
testNotRenamed("throw", { ::`throw` })
|
||||
@@ -16,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ object TestObject {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("switch", {
|
||||
switch@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("switch", { switch@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ object TestObject {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("typeof", {
|
||||
typeof@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("typeof", { typeof@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ object TestObject {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("var", {
|
||||
`var`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("var", { `var`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,7 @@ object TestObject {
|
||||
val t: Int = 0
|
||||
|
||||
fun test() {
|
||||
testRenamed("while", {
|
||||
`while`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("while", { `while`@ while (false) {} })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +14,4 @@ fun box(): String {
|
||||
TestObject.test()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
|
||||
|
||||
|
||||
|
||||
try {
|
||||
throw Exception()
|
||||
}
|
||||
@@ -13,4 +14,4 @@ fun box(): String {
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
|
||||
|
||||
|
||||
|
||||
try {
|
||||
throw Exception()
|
||||
}
|
||||
@@ -13,4 +14,4 @@ fun box(): String {
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
|
||||
|
||||
|
||||
|
||||
try {
|
||||
throw Exception()
|
||||
}
|
||||
@@ -13,4 +14,4 @@ fun box(): String {
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
|
||||
|
||||
|
||||
|
||||
try {
|
||||
throw Exception()
|
||||
}
|
||||
@@ -13,4 +14,4 @@ fun box(): String {
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,11 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
fun `continue`() {
|
||||
`continue`()
|
||||
}
|
||||
fun `continue`() { `continue`() }
|
||||
|
||||
testRenamed("continue", { ::`continue` })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,11 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
fun `do`() {
|
||||
`do`()
|
||||
}
|
||||
fun `do`() { `do`() }
|
||||
|
||||
testRenamed("do", { ::`do` })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,11 @@ package foo
|
||||
|
||||
fun box(): String {
|
||||
fun foo(`else`: String) {
|
||||
assertEquals("123", `else`)
|
||||
testRenamed("else", { `else` })
|
||||
}
|
||||
assertEquals("123", `else`)
|
||||
testRenamed("else", { `else` })
|
||||
}
|
||||
|
||||
foo("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,11 @@ package foo
|
||||
|
||||
fun box(): String {
|
||||
fun foo(`false`: String) {
|
||||
assertEquals("123", `false`)
|
||||
testRenamed("false", { `false` })
|
||||
}
|
||||
assertEquals("123", `false`)
|
||||
testRenamed("false", { `false` })
|
||||
}
|
||||
|
||||
foo("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,11 @@ package foo
|
||||
|
||||
fun box(): String {
|
||||
fun foo(public: String) {
|
||||
assertEquals("123", public)
|
||||
testRenamed("public", { public })
|
||||
}
|
||||
assertEquals("123", public)
|
||||
testRenamed("public", { public })
|
||||
}
|
||||
|
||||
foo("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,11 @@ package foo
|
||||
|
||||
fun box(): String {
|
||||
fun foo(static: String) {
|
||||
assertEquals("123", static)
|
||||
testRenamed("static", { static })
|
||||
}
|
||||
assertEquals("123", static)
|
||||
testRenamed("static", { static })
|
||||
}
|
||||
|
||||
foo("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,11 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
fun private() {
|
||||
private()
|
||||
}
|
||||
fun private() { private() }
|
||||
|
||||
testRenamed("private", { ::private })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -3,11 +3,9 @@ package foo
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
fun box(): String {
|
||||
fun protected() {
|
||||
protected()
|
||||
}
|
||||
fun protected() { protected() }
|
||||
|
||||
testRenamed("protected", { ::protected })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,7 @@ package foo
|
||||
fun box(): String {
|
||||
val t: Int = 0
|
||||
|
||||
testRenamed("for", {
|
||||
`for`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("for", { `for`@ while (false) {} })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,7 @@ package foo
|
||||
fun box(): String {
|
||||
val t: Int = 0
|
||||
|
||||
testRenamed("if", {
|
||||
`if`@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("if", { `if`@ while (false) {} })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,7 @@ package foo
|
||||
fun box(): String {
|
||||
val t: Int = 0
|
||||
|
||||
testRenamed("switch", {
|
||||
switch@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("switch", { switch@ while (false) {} })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,7 @@ package foo
|
||||
fun box(): String {
|
||||
val t: Int = 0
|
||||
|
||||
testRenamed("typeof", {
|
||||
typeof@ while (false) {
|
||||
}
|
||||
})
|
||||
testRenamed("typeof", { typeof@ while (false) {} })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,10 @@ package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
interface eval {
|
||||
companion object {}
|
||||
}
|
||||
interface eval { companion object {} }
|
||||
|
||||
fun box(): String {
|
||||
testNotRenamed("eval", { eval })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,10 @@ package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
interface export {
|
||||
companion object {}
|
||||
}
|
||||
interface export { companion object {} }
|
||||
|
||||
fun box(): String {
|
||||
testNotRenamed("export", { export })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,10 @@ package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
interface `return` {
|
||||
companion object {}
|
||||
}
|
||||
interface `return` { companion object {} }
|
||||
|
||||
fun box(): String {
|
||||
testNotRenamed("return", { `return` })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,10 @@ package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
interface `super` {
|
||||
companion object {}
|
||||
}
|
||||
interface `super` { companion object {} }
|
||||
|
||||
fun box(): String {
|
||||
testNotRenamed("super", { `super` })
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user