Minor: fix testdata files which were accidentally reformatted

This commit is contained in:
Zalim Bashorov
2015-09-23 18:18:08 +03:00
parent 2c952dcc22
commit 967c8eae2e
88 changed files with 220 additions and 364 deletions
@@ -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() {
@@ -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,7 +4,6 @@ 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` })
@@ -4,7 +4,6 @@ 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` })
@@ -4,7 +4,6 @@ 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 })
@@ -4,7 +4,6 @@ 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 })
@@ -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 })
@@ -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 })
@@ -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` })
@@ -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) {
}
})
} }
} }
} }
@@ -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) {
}
})
} }
} }
} }
@@ -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,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` })
@@ -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` })