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
@@ -4,7 +4,7 @@ package kt411
fun f() {
invoker(
@l{
l@{
return@l 11 // expects Function, but should expect Int
}
)
@@ -13,13 +13,13 @@ fun invoker(<!UNUSED_PARAMETER!>gen<!> : () -> Int) : Int = 0
//more tests
fun t1() {
val <!UNUSED_VARIABLE!>v<!> = @l{
val <!UNUSED_VARIABLE!>v<!> = l@{
return@l 111
}
}
fun t2() : String {
val <!UNUSED_VARIABLE!>g<!> : ()-> Int = @l{
val <!UNUSED_VARIABLE!>g<!> : ()-> Int = l@{
if (true) {
return@l 1
}
@@ -30,7 +30,7 @@ fun t2() : String {
fun t3() : String {
invoker(
@l{
l@{
if (true) {
<!RETURN_NOT_ALLOWED!>return@t3 "1"<!>
}
@@ -41,7 +41,7 @@ fun t3() : String {
}
)
invoker(
@l{
l@{
return@l 1
}
)
@@ -54,10 +54,10 @@ fun t3() : String {
}
fun t4() : Int {
val <!UNUSED_VARIABLE!>h<!> : ()-> String = @l{
val <!UNUSED_VARIABLE!>h<!> : ()-> String = l@{
return@l "a"
}
val <!UNUSED_VARIABLE!>g<!> : ()-> String = @l{
val <!UNUSED_VARIABLE!>g<!> : ()-> String = l@{
return@l "a"
}