Update reservedWords JS tests after changes to callable references

This commit is contained in:
Alexander Udalov
2015-10-02 23:06:55 +03:00
parent 012a2971ff
commit 659826d5c3
29 changed files with 30 additions and 30 deletions
@@ -352,10 +352,10 @@ fun testRenamed(reference: String = "$KEYWORD_MARKER") = "testRenamed(\"$KEYWORD
fun testNotRenamed(reference: String = "$KEYWORD_MARKER") = "testNotRenamed(\"$KEYWORD_MARKER\", { $reference })"
val testRenamedByName = testRenamed()
val testRenamedByRef = testRenamed("::$KEYWORD_MARKER")
val testRenamedByRef = testRenamed("$KEYWORD_MARKER()")
val testNotRenamedByName = testNotRenamed()
val testNotRenamedByRef = testNotRenamed("::$KEYWORD_MARKER")
val testNotRenamedByRef = testNotRenamed("$KEYWORD_MARKER()")
// KEYWORDS
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("catch", { ::catch })
testNotRenamed("catch", { catch() })
}
}
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("const", { ::const })
testNotRenamed("const", { const() })
}
}
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("null", { ::`null` })
testNotRenamed("null", { `null`() })
}
}
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() {
fun test() {
testNotRenamed("package", { ::`package` })
testNotRenamed("package", { `package`() })
}
}
@@ -7,7 +7,7 @@ enum class Foo {
fun `break`() { `break`() }
fun test() {
testNotRenamed("break", { ::`break` })
testNotRenamed("break", { `break`() })
}
}
@@ -7,7 +7,7 @@ enum class Foo {
fun `class`() { `class`() }
fun test() {
testNotRenamed("class", { ::`class` })
testNotRenamed("class", { `class`() })
}
}
@@ -7,7 +7,7 @@ enum class Foo {
fun function() { function() }
fun test() {
testNotRenamed("function", { ::function })
testNotRenamed("function", { function() })
}
}
@@ -7,7 +7,7 @@ enum class Foo {
fun implements() { implements() }
fun test() {
testNotRenamed("implements", { ::implements })
testNotRenamed("implements", { implements() })
}
}
@@ -6,7 +6,7 @@ class TestClass {
fun arguments() { arguments() }
fun test() {
testNotRenamed("arguments", { ::arguments })
testNotRenamed("arguments", { arguments() })
}
}
@@ -6,7 +6,7 @@ class TestClass {
fun NaN() { NaN() }
fun test() {
testNotRenamed("NaN", { ::NaN })
testNotRenamed("NaN", { NaN() })
}
}
@@ -6,7 +6,7 @@ class TestClass {
fun `this`() { `this`() }
fun test() {
testNotRenamed("this", { ::`this` })
testNotRenamed("this", { `this`() })
}
}
@@ -6,7 +6,7 @@ class TestClass {
fun `throw`() { `throw`() }
fun test() {
testNotRenamed("throw", { ::`throw` })
testNotRenamed("throw", { `throw`() })
}
}
@@ -7,7 +7,7 @@ class TestClass {
fun `else`() { `else`() }
fun test() {
testNotRenamed("else", { ::`else` })
testNotRenamed("else", { `else`() })
}
}
}
@@ -7,7 +7,7 @@ class TestClass {
fun eval() { eval() }
fun test() {
testNotRenamed("eval", { ::eval })
testNotRenamed("eval", { eval() })
}
}
}
@@ -7,7 +7,7 @@ class TestClass {
fun export() { export() }
fun test() {
testNotRenamed("export", { ::export })
testNotRenamed("export", { export() })
}
}
}
@@ -7,7 +7,7 @@ class TestClass {
fun `false`() { `false`() }
fun test() {
testNotRenamed("false", { ::`false` })
testNotRenamed("false", { `false`() })
}
}
}
@@ -6,7 +6,7 @@ object TestObject {
fun private() { private() }
fun test() {
testNotRenamed("private", { ::private })
testNotRenamed("private", { private() })
}
}
@@ -6,7 +6,7 @@ object TestObject {
fun protected() { protected() }
fun test() {
testNotRenamed("protected", { ::protected })
testNotRenamed("protected", { protected() })
}
}
@@ -6,7 +6,7 @@ object TestObject {
fun `this`() { `this`() }
fun test() {
testNotRenamed("this", { ::`this` })
testNotRenamed("this", { `this`() })
}
}
@@ -6,7 +6,7 @@ object TestObject {
fun `throw`() { `throw`() }
fun test() {
testNotRenamed("throw", { ::`throw` })
testNotRenamed("throw", { `throw`() })
}
}
@@ -5,7 +5,7 @@ package foo
fun box(): String {
fun `continue`() { `continue`() }
testRenamed("continue", { ::`continue` })
testRenamed("continue", { `continue`() })
return "OK"
}
@@ -5,7 +5,7 @@ package foo
fun box(): String {
fun `do`() { `do`() }
testRenamed("do", { ::`do` })
testRenamed("do", { `do`() })
return "OK"
}
@@ -5,7 +5,7 @@ package foo
fun box(): String {
fun private() { private() }
testRenamed("private", { ::private })
testRenamed("private", { private() })
return "OK"
}
@@ -5,7 +5,7 @@ package foo
fun box(): String {
fun protected() { protected() }
testRenamed("protected", { ::protected })
testRenamed("protected", { protected() })
return "OK"
}
@@ -5,7 +5,7 @@ package foo
fun await() { await() }
fun box(): String {
testNotRenamed("await", { ::await })
testNotRenamed("await", { await() })
return "OK"
}
@@ -5,7 +5,7 @@ package foo
fun case() { case() }
fun box(): String {
testNotRenamed("case", { ::case })
testNotRenamed("case", { case() })
return "OK"
}
@@ -5,7 +5,7 @@ package foo
fun `else`() { `else`() }
fun box(): String {
testNotRenamed("else", { ::`else` })
testNotRenamed("else", { `else`() })
return "OK"
}
@@ -5,7 +5,7 @@ package foo
fun `false`() { `false`() }
fun box(): String {
testNotRenamed("false", { ::`false` })
testNotRenamed("false", { `false`() })
return "OK"
}