Adjust testData to new labels syntax

This commit is contained in:
Denis Zharkov
2015-04-27 14:39:46 +03:00
parent 5977302465
commit 44a55e5bf6
191 changed files with 747 additions and 747 deletions
@@ -1,7 +1,7 @@
import test.*
fun test1(b: Boolean): String {
val localResult = doCall ((@local {
val localResult = doCall ((local@ {
if (b) {
return@local "local"
} else {
@@ -1,7 +1,7 @@
import test.*
fun test1(b: Boolean): String {
val localResult = doCall @local {
val localResult = doCall local@ {
if (b) {
return@local "local"
} else {
@@ -1,7 +1,7 @@
import test.*
fun test1(b: Boolean): String {
val localResult = doCall @local {
val localResult = doCall local@ {
if (b) {
return@local "local"
} else {
@@ -15,9 +15,9 @@ class Global(val value: String)
fun test1(intKind: Kind, extKind: Kind): Global {
var externalResult = doCall @ext {
var externalResult = doCall ext@ {
val internalResult = doCall @int {
val internalResult = doCall int@ {
if (intKind == Kind.GLOBAL) {
return@test1 Global("internal -> global")
} else if (intKind == EXTERNAL) {
@@ -2,7 +2,7 @@
import test.*
fun test1(b: Boolean): String {
val localResult = noInlineCall @local {
val localResult = noInlineCall local@ {
if (b) {
return@local 1
} else {
@@ -4,12 +4,12 @@ fun test(): String = fun (): String {
return "fail"
} ()
fun test2(): String = (@l fun (): String {
fun test2(): String = (l@ fun (): String {
foo { return@l "OK" }
return "fail"
}) ()
fun test3(): String = (@l fun bar(): String {
fun test3(): String = (l@ fun bar(): String {
foo { return@bar "OK" }
return "fail"
}) ()
@@ -22,10 +22,10 @@ class Global(val value: String)
fun test1(intKind: Kind, extKind: Kind, holder: Holder): Global {
holder.value = ""
try {
var externalResult = doCall @ext {
var externalResult = doCall ext@ {
try {
val internalResult = doCall @int {
val internalResult = doCall int@ {
try {
if (intKind == Kind.GLOBAL) {
return@test1 Global("internal -> global")
@@ -22,10 +22,10 @@ class Global(val value: String)
fun test1(intKind: Kind, extKind: Kind, holder: Holder): Global {
holder.value = ""
try {
var externalResult = doCall (@ext {
var externalResult = doCall (ext@ {
try {
val internalResult = doCall (@int {
val internalResult = doCall (int@ {
try {
if (intKind == Kind.GLOBAL) {
return@test1 Global("internal -> global")
@@ -17,7 +17,7 @@ fun test1(h: Holder): String {
fun test2(h: Holder): String {
val localResult = doCall (@lambda {
val localResult = doCall (lambda@ {
h.value += "OK_LOCAL"
return@lambda "OK_LOCAL"
}, {
@@ -21,7 +21,7 @@ fun test1(h: Holder): String {
fun test2(h: Holder): String {
val localResult = doCall (
@lambda {
lambda@ {
h.value += "OK_NONLOCAL"
return@lambda "OK_NONLOCAL"
}, {
@@ -51,7 +51,7 @@ fun test4(h: Holder): String {
h.value += "OK_NONLOCAL"
return "OK_NONLOCAL"
},
@l2 {
l2@ {
h.value += ", OK_FINALLY"
return@l2 "OK_FINALLY"
})