Generate parse error on label without name '@'

This commit is contained in:
Svetlana Isakova
2014-05-15 15:24:14 +04:00
parent f109cfc303
commit e0f37bbef0
15 changed files with 358 additions and 316 deletions
@@ -20,9 +20,9 @@ fun t2() {
fun t3() {
try {
1
@{ () ->
@l{ () ->
if (2 > 3) {
return@
return@l
}
}
} finally {
@@ -31,11 +31,11 @@ fun t3() {
}
fun t4() {
@{ () ->
@l{ () ->
try {
1
if (2 > 3) {
return@
return@l
}
} finally {
2
@@ -44,11 +44,11 @@ fun t4() {
}
fun t5() {
@ while(true) {
@l while(true) {
try {
1
if (2 > 3) {
break @
break @l
}
} finally {
2
@@ -58,10 +58,10 @@ fun t5() {
fun t6() {
try {
@ while(true) {
@l while(true) {
1
if (2 > 3) {
break @
break @l
}
}
5
@@ -72,10 +72,10 @@ fun t6() {
fun t7() {
try {
@ while(true) {
@l while(true) {
1
if (2 > 3) {
break @
break @l
}
}
} finally {
@@ -84,11 +84,11 @@ fun t7() {
}
fun t8(a : Int) {
@ for (i in 1..a) {
@l for (i in 1..a) {
try {
1
if (2 > 3) {
continue @
continue @l
}
} finally {
2
@@ -98,10 +98,10 @@ fun t8(a : Int) {
fun t9(a : Int) {
try {
@ for (i in 1..a) {
@l for (i in 1..a) {
1
if (2 > 3) {
continue @
continue @l
}
}
5
@@ -112,10 +112,10 @@ fun t9(a : Int) {
fun t10(a : Int) {
try {
@ for (i in 1..a) {
@l for (i in 1..a) {
1
if (2 > 3) {
continue @
continue @l
}
}
} finally {