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