Regenerate testData for reservedWords after take was fixed.

This commit is contained in:
Zalim Bashorov
2014-09-27 00:04:18 +04:00
parent 2352085391
commit 916cfb7051
210 changed files with 1475 additions and 1421 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,20 @@
NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
break
class
continue
do
else
false
for
if
in
null
package
return
super
this
throw
true
try
var
while
@@ -0,0 +1,34 @@
NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
Infinity
Kotlin
NaN
arguments
await
case
catch
const
debugger
default
delete
enum
eval
export
extends
finally
function
implements
import
instanceof
interface
let
new
private
protected
public
static
switch
typeof
undefined
void
with
yield
@@ -2,9 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(await: String) {
data class DataClass(`if`: String) {
{
testRenamed("await", { await })
testRenamed("if", { `if` })
}
}
@@ -2,9 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(var `in`: String) {
data class DataClass(`in`: String) {
{
testNotRenamed("in", { `in` })
testRenamed("in", { `in` })
}
}
@@ -2,9 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(var `if`: String) {
data class DataClass(with: String) {
{
testNotRenamed("if", { `if` })
testRenamed("with", { with })
}
}
@@ -2,9 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(val with: String) {
data class DataClass(yield: String) {
{
testNotRenamed("with", { with })
testRenamed("yield", { yield })
}
}
@@ -0,0 +1,15 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(val `do`: String) {
{
testNotRenamed("do", { `do` })
}
}
fun box(): String {
DataClass("123")
return "OK"
}
@@ -2,9 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(`return`: String) {
data class DataClass(val `else`: String) {
{
testRenamed("return", { `return` })
testNotRenamed("else", { `else` })
}
}
@@ -1,15 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(val `finally`: String) {
{
testNotRenamed("finally", { `finally` })
}
}
fun box(): String {
DataClass("123")
return "OK"
}
@@ -2,17 +2,14 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
var switch: Int = 0
fun test() {
data class DataClass(val switch: String) {
{
testNotRenamed("switch", { switch })
}
}
fun box(): String {
Foo.BAR.test()
DataClass("123")
return "OK"
}
@@ -2,9 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(`package`: String) {
data class DataClass(val typeof: String) {
{
testRenamed("package", { `package` })
testNotRenamed("typeof", { typeof })
}
}
@@ -2,7 +2,7 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(val `false`: String) {
data class DataClass(var `false`: String) {
{
testNotRenamed("false", { `false` })
}
@@ -0,0 +1,15 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(var `for`: String) {
{
testNotRenamed("for", { `for` })
}
}
fun box(): String {
DataClass("123")
return "OK"
}
@@ -1,15 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(var Infinity: String) {
{
testNotRenamed("Infinity", { Infinity })
}
}
fun box(): String {
DataClass("123")
return "OK"
}
@@ -1,15 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(var Kotlin: String) {
{
testNotRenamed("Kotlin", { Kotlin })
}
}
fun box(): String {
DataClass("123")
return "OK"
}
@@ -2,9 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(arguments: String) {
data class DataClass(var undefined: String) {
{
testRenamed("arguments", { arguments })
testNotRenamed("undefined", { undefined })
}
}
@@ -2,7 +2,7 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
data class DataClass(val void: String) {
data class DataClass(var void: String) {
{
testNotRenamed("void", { void })
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
val `this`: Int
fun await()
}
class TraitImpl : Trait {
override val `this`: Int = 0
override fun await() { await() }
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("this", { `this` })
testNotRenamed("await", { ::await })
}
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
var `try`: Int
fun case()
}
class TraitImpl : Trait {
override var `try`: Int = 0
override fun case() { case() }
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("try", { `try` })
testNotRenamed("case", { ::case })
}
}
@@ -3,13 +3,13 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun foo(import: String)
fun foo(catch: String)
}
class TraitImpl : Trait {
override fun foo(import: String) {
assertEquals("123", import)
testRenamed("import", { import })
override fun foo(catch: String) {
assertEquals("123", catch)
testRenamed("catch", { catch })
}
}
@@ -3,13 +3,13 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun foo(`continue`: String)
fun foo(const: String)
}
class TraitImpl : Trait {
override fun foo(`continue`: String) {
assertEquals("123", `continue`)
testRenamed("continue", { `continue` })
override fun foo(const: String) {
assertEquals("123", const)
testRenamed("const", { const })
}
}
@@ -3,13 +3,13 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun foo(implements: String)
fun foo(`true`: String)
}
class TraitImpl : Trait {
override fun foo(implements: String) {
assertEquals("123", implements)
testRenamed("implements", { implements })
override fun foo(`true`: String) {
assertEquals("123", `true`)
testRenamed("true", { `true` })
}
}
@@ -3,13 +3,13 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun foo(`do`: String)
fun foo(`try`: String)
}
class TraitImpl : Trait {
override fun foo(`do`: String) {
assertEquals("123", `do`)
testRenamed("do", { `do` })
override fun foo(`try`: String) {
assertEquals("123", `try`)
testRenamed("try", { `try` })
}
}
@@ -0,0 +1,23 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun `this`()
}
class TraitImpl : Trait {
override fun `this`() { `this`() }
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("this", { ::`this` })
}
}
fun box(): String {
TestDelegate().test()
return "OK"
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun `break`()
fun `throw`()
}
class TraitImpl : Trait {
override fun `break`() { `break`() }
override fun `throw`() { `throw`() }
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("break", { ::`break` })
testNotRenamed("throw", { ::`throw` })
}
}
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testRenamed("finally", { @`finally` while (false) {} })
testRenamed("debugger", { @debugger while (false) {} })
}
}
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testRenamed("interface", { @interface while (false) {} })
testRenamed("default", { @default while (false) {} })
}
}
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testRenamed("let", { @let while (false) {} })
testRenamed("var", { @`var` while (false) {} })
}
}
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testRenamed("false", { @`false` while (false) {} })
testRenamed("while", { @`while` while (false) {} })
}
}
@@ -1,23 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
val debugger: Int
}
class TraitImpl : Trait {
override val debugger: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("debugger", { debugger })
}
}
fun box(): String {
TestDelegate().test()
return "OK"
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun `catch`()
val Infinity: Int
}
class TraitImpl : Trait {
override fun `catch`() { `catch`() }
override val Infinity: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("catch", { ::`catch` })
testNotRenamed("Infinity", { Infinity })
}
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
var delete: Int
val Kotlin: Int
}
class TraitImpl : Trait {
override var delete: Int = 0
override val Kotlin: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("delete", { delete })
testNotRenamed("Kotlin", { Kotlin })
}
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
val const: Int
val `null`: Int
}
class TraitImpl : Trait {
override val const: Int = 0
override val `null`: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("const", { const })
testNotRenamed("null", { `null` })
}
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun extends()
val `package`: Int
}
class TraitImpl : Trait {
override fun extends() { extends() }
override val `package`: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("extends", { ::extends })
testNotRenamed("package", { `package` })
}
}
@@ -0,0 +1,23 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
var arguments: Int
}
class TraitImpl : Trait {
override var arguments: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("arguments", { arguments })
}
}
fun box(): String {
TestDelegate().test()
return "OK"
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
var enum: Int
var NaN: Int
}
class TraitImpl : Trait {
override var enum: Int = 0
override var NaN: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("enum", { enum })
testNotRenamed("NaN", { NaN })
}
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
fun export()
var `return`: Int
}
class TraitImpl : Trait {
override fun export() { export() }
override var `return`: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("export", { ::export })
testNotRenamed("return", { `return` })
}
}
@@ -3,16 +3,16 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
val `throw`: Int
var `super`: Int
}
class TraitImpl : Trait {
override val `throw`: Int = 0
override var `super`: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("throw", { `throw` })
testNotRenamed("super", { `super` })
}
}
@@ -1,23 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
trait Trait {
var `var`: Int
}
class TraitImpl : Trait {
override var `var`: Int = 0
}
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("var", { `var` })
}
}
fun box(): String {
TestDelegate().test()
return "OK"
}
@@ -3,11 +3,11 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
`continue`
interface
}
fun box(): String {
testNotRenamed("continue", { Foo.`continue` })
testNotRenamed("interface", { Foo.interface })
return "OK"
}
@@ -3,11 +3,11 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
`do`
let
}
fun box(): String {
testNotRenamed("do", { Foo.`do` })
testNotRenamed("let", { Foo.let })
return "OK"
}
@@ -3,11 +3,11 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
case
`package`
}
fun box(): String {
testNotRenamed("case", { Foo.case })
testNotRenamed("package", { Foo.`package` })
return "OK"
}
@@ -3,11 +3,11 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
const
`return`
}
fun box(): String {
testNotRenamed("const", { Foo.const })
testNotRenamed("return", { Foo.`return` })
return "OK"
}
@@ -4,10 +4,10 @@ package foo
enum class Foo {
BAR
fun `this`() { `this`() }
fun `else`() { `else`() }
fun test() {
testNotRenamed("this", { ::`this` })
testNotRenamed("else", { ::`else` })
}
}
@@ -0,0 +1,18 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
fun extends() { extends() }
fun test() {
testNotRenamed("extends", { ::extends })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -4,10 +4,10 @@ package foo
enum class Foo {
BAR
fun `throw`() { `throw`() }
fun `false`() { `false`() }
fun test() {
testNotRenamed("throw", { ::`throw` })
testNotRenamed("false", { ::`false` })
}
}
@@ -0,0 +1,18 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
fun finally() { finally() }
fun test() {
testNotRenamed("finally", { ::finally })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -4,9 +4,9 @@ package foo
enum class Foo {
BAR
fun foo(`try`: String) {
assertEquals("123", `try`)
testRenamed("try", { `try` })
fun foo(`for`: String) {
assertEquals("123", `for`)
testRenamed("for", { `for` })
}
fun test() {
@@ -4,9 +4,9 @@ package foo
enum class Foo {
BAR
fun foo(Infinity: String) {
assertEquals("123", Infinity)
testRenamed("Infinity", { Infinity })
fun foo(function: String) {
assertEquals("123", function)
testRenamed("function", { function })
}
fun test() {
@@ -4,9 +4,9 @@ package foo
enum class Foo {
BAR
fun foo(yield: String) {
assertEquals("123", yield)
testRenamed("yield", { yield })
fun foo(`if`: String) {
assertEquals("123", `if`)
testRenamed("if", { `if` })
}
fun test() {
@@ -0,0 +1,21 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
fun foo(implements: String) {
assertEquals("123", implements)
testRenamed("implements", { implements })
}
fun test() {
foo("123")
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -1,18 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
fun undefined() { undefined() }
fun test() {
testNotRenamed("undefined", { ::undefined })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -7,7 +7,7 @@ enum class Foo {
val t: Int = 0
fun test() {
testRenamed("catch", { @`catch` while (false) {} })
testRenamed("import", { @import while (false) {} })
}
}
@@ -7,7 +7,7 @@ enum class Foo {
val t: Int = 0
fun test() {
testRenamed("NaN", { @NaN while (false) {} })
testRenamed("in", { @`in` while (false) {} })
}
}
@@ -0,0 +1,18 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
val t: Int = 0
fun test() {
testRenamed("instanceof", { @instanceof while (false) {} })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -7,7 +7,7 @@ enum class Foo {
val t: Int = 0
fun test() {
testRenamed("arguments", { @arguments while (false) {} })
testRenamed("null", { @`null` while (false) {} })
}
}
@@ -0,0 +1,18 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
val `break`: Int = 0
fun test() {
testNotRenamed("break", { `break` })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -0,0 +1,18 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
val `class`: Int = 0
fun test() {
testNotRenamed("class", { `class` })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -4,10 +4,10 @@ package foo
enum class Foo {
BAR
var static: Int = 0
val delete: Int = 0
fun test() {
testNotRenamed("static", { static })
testNotRenamed("delete", { delete })
}
}
@@ -4,10 +4,10 @@ package foo
enum class Foo {
BAR
val `if`: Int = 0
val enum: Int = 0
fun test() {
testNotRenamed("if", { `if` })
testNotRenamed("enum", { enum })
}
}
@@ -1,18 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
val private: Int = 0
fun test() {
testNotRenamed("private", { private })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -1,18 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
val protected: Int = 0
fun test() {
testNotRenamed("protected", { protected })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -2,8 +2,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
val `continue`: Int = 0
enum class Foo {
BAR
var `continue`: Int = 0
fun test() {
testNotRenamed("continue", { `continue` })
@@ -11,7 +12,7 @@ class TestClass {
}
fun box(): String {
TestClass().test()
Foo.BAR.test()
return "OK"
}
@@ -4,10 +4,10 @@ package foo
enum class Foo {
BAR
val `in`: Int = 0
var `do`: Int = 0
fun test() {
testNotRenamed("in", { `in` })
testNotRenamed("do", { `do` })
}
}
@@ -4,10 +4,10 @@ package foo
enum class Foo {
BAR
fun void() { void() }
var eval: Int = 0
fun test() {
testNotRenamed("void", { ::void })
testNotRenamed("eval", { eval })
}
}
@@ -0,0 +1,18 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
var export: Int = 0
fun test() {
testNotRenamed("export", { export })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -1,18 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
var `package`: Int = 0
fun test() {
testNotRenamed("package", { `package` })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -1,18 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
var `return`: Int = 0
fun test() {
testNotRenamed("return", { `return` })
}
}
fun box(): String {
Foo.BAR.test()
return "OK"
}
@@ -0,0 +1,17 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun Kotlin() { Kotlin() }
fun test() {
testNotRenamed("Kotlin", { ::Kotlin })
}
}
fun box(): String {
TestClass().test()
return "OK"
}
@@ -3,10 +3,10 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun new() { new() }
fun NaN() { NaN() }
fun test() {
testNotRenamed("new", { ::new })
testNotRenamed("NaN", { ::NaN })
}
}
@@ -3,9 +3,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun foo(`package`: String) {
assertEquals("123", `package`)
testRenamed("package", { `package` })
fun foo(arguments: String) {
assertEquals("123", arguments)
testRenamed("arguments", { arguments })
}
fun test() {
@@ -3,9 +3,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun foo(static: String) {
assertEquals("123", static)
testRenamed("static", { static })
fun foo(await: String) {
assertEquals("123", await)
testRenamed("await", { await })
}
fun test() {
@@ -2,8 +2,7 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
class TestClass {
fun foo(`var`: String) {
assertEquals("123", `var`)
testRenamed("var", { `var` })
@@ -15,7 +14,7 @@ enum class Foo {
}
fun box(): String {
Foo.BAR.test()
TestClass().test()
return "OK"
}
@@ -3,9 +3,9 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun foo(`return`: String) {
assertEquals("123", `return`)
testRenamed("return", { `return` })
fun foo(`while`: String) {
assertEquals("123", `while`)
testRenamed("while", { `while` })
}
fun test() {
@@ -1,17 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun private() { private() }
fun test() {
testNotRenamed("private", { ::private })
}
}
fun box(): String {
TestClass().test()
return "OK"
}
@@ -0,0 +1,17 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun `true`() { `true`() }
fun test() {
testNotRenamed("true", { ::`true` })
}
}
fun box(): String {
TestClass().test()
return "OK"
}
@@ -0,0 +1,17 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
fun `try`() { `try`() }
fun test() {
testNotRenamed("try", { ::`try` })
}
}
fun box(): String {
TestClass().test()
return "OK"
}
@@ -2,8 +2,7 @@ package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
enum class Foo {
BAR
class TestClass {
val t: Int = 0
fun test() {
@@ -12,7 +11,7 @@ enum class Foo {
}
fun box(): String {
Foo.BAR.test()
TestClass().test()
return "OK"
}
@@ -6,7 +6,7 @@ class TestClass {
val t: Int = 0
fun test() {
testRenamed("this", { @`this` while (false) {} })
testRenamed("case", { @case while (false) {} })
}
}
@@ -6,7 +6,7 @@ class TestClass {
val t: Int = 0
fun test() {
testRenamed("throw", { @`throw` while (false) {} })
testRenamed("catch", { @catch while (false) {} })
}
}
@@ -6,7 +6,7 @@ class TestClass {
val t: Int = 0
fun test() {
testRenamed("typeof", { @typeof while (false) {} })
testRenamed("class", { @`class` while (false) {} })
}
}
@@ -1,17 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
val t: Int = 0
fun test() {
testRenamed("undefined", { @undefined while (false) {} })
}
}
fun box(): String {
TestClass().test()
return "OK"
}
@@ -1,19 +0,0 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
class object {
fun `continue`() { `continue`() }
fun test() {
testNotRenamed("continue", { ::`continue` })
}
}
}
fun box(): String {
TestClass.test()
return "OK"
}
@@ -4,10 +4,10 @@ package foo
class TestClass {
class object {
fun case() { case() }
fun enum() { enum() }
fun test() {
testNotRenamed("case", { ::case })
testNotRenamed("enum", { ::enum })
}
}
}
@@ -4,10 +4,10 @@ package foo
class TestClass {
class object {
fun `do`() { `do`() }
fun eval() { eval() }
fun test() {
testNotRenamed("do", { ::`do` })
testNotRenamed("eval", { ::eval })
}
}
}
@@ -0,0 +1,19 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
class object {
fun `for`() { `for`() }
fun test() {
testNotRenamed("for", { ::`for` })
}
}
}
fun box(): String {
TestClass.test()
return "OK"
}
@@ -4,10 +4,10 @@ package foo
class TestClass {
class object {
val with: Int = 0
fun `if`() { `if`() }
fun test() {
testNotRenamed("with", { with })
testNotRenamed("if", { ::`if` })
}
}
}
@@ -4,9 +4,9 @@ package foo
class TestClass {
class object {
fun foo(`false`: String) {
assertEquals("123", `false`)
testRenamed("false", { `false` })
fun foo(export: String) {
assertEquals("123", export)
testRenamed("export", { export })
}
fun test() {
@@ -4,9 +4,9 @@ package foo
class TestClass {
class object {
fun foo(default: String) {
assertEquals("123", default)
testRenamed("default", { default })
fun foo(extends: String) {
assertEquals("123", extends)
testRenamed("extends", { extends })
}
fun test() {
@@ -4,9 +4,9 @@ package foo
class TestClass {
class object {
fun foo(debugger: String) {
assertEquals("123", debugger)
testRenamed("debugger", { debugger })
fun foo(`in`: String) {
assertEquals("123", `in`)
testRenamed("in", { `in` })
}
fun test() {
@@ -4,9 +4,9 @@ package foo
class TestClass {
class object {
fun foo(`finally`: String) {
assertEquals("123", `finally`)
testRenamed("finally", { `finally` })
fun foo(`null`: String) {
assertEquals("123", `null`)
testRenamed("null", { `null` })
}
fun test() {
@@ -7,7 +7,7 @@ class TestClass {
val t: Int = 0
fun test() {
testRenamed("eval", { @eval while (false) {} })
testRenamed("finally", { @finally while (false) {} })
}
}
}
@@ -7,7 +7,7 @@ class TestClass {
val t: Int = 0
fun test() {
testRenamed("enum", { @enum while (false) {} })
testRenamed("function", { @function while (false) {} })
}
}
}
@@ -7,7 +7,7 @@ class TestClass {
val t: Int = 0
fun test() {
testRenamed("in", { @`in` while (false) {} })
testRenamed("package", { @`package` while (false) {} })
}
}
}
@@ -7,7 +7,7 @@ class TestClass {
val t: Int = 0
fun test() {
testRenamed("if", { @`if` while (false) {} })
testRenamed("return", { @`return` while (false) {} })
}
}
}
@@ -4,10 +4,10 @@ package foo
class TestClass {
class object {
val `try`: Int = 0
val const: Int = 0
fun test() {
testNotRenamed("try", { `try` })
testNotRenamed("const", { const })
}
}
}
@@ -0,0 +1,19 @@
package foo
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
class TestClass {
class object {
val `continue`: Int = 0
fun test() {
testNotRenamed("continue", { `continue` })
}
}
}
fun box(): String {
TestClass.test()
return "OK"
}
@@ -4,10 +4,10 @@ package foo
class TestClass {
class object {
fun await() { await() }
val debugger: Int = 0
fun test() {
testNotRenamed("await", { ::await })
testNotRenamed("debugger", { debugger })
}
}
}
@@ -4,10 +4,10 @@ package foo
class TestClass {
class object {
var NaN: Int = 0
val `do`: Int = 0
fun test() {
testNotRenamed("NaN", { NaN })
testNotRenamed("do", { `do` })
}
}
}

Some files were not shown because too many files have changed in this diff Show More