Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Commit

Permalink
Revert "Migrate labels syntax"
Browse files Browse the repository at this point in the history
This reverts commit b1c5c88.
  • Loading branch information
dzharkov committed May 4, 2015
1 parent b1c5c88 commit 212bbb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/syntax/forWhileLoops.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ fun doWhileLoop() {
}

fun labels() {
outerLoop@ while (true) {
innerLoop@ for (i in 1..10) {
@outerLoop while (true) {
@innerLoop for (i in 1..10) {
if (i < 10) {
continue@innerLoop
}
Expand Down
6 changes: 3 additions & 3 deletions src/syntax/qualifiedThis.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Outer { // implicit label @Outer
use(this@Outer, this@Inner, this@foo)
this == this@foo

val fl: String.() -> Boolean = S@{
val fl: String.() -> Boolean = @S{
use(this, this@S)
this == this@S
}
Expand All @@ -24,8 +24,8 @@ trait C { fun c() {} }
fun B.foo(f: C.()->Unit) = f

fun labelsForExtensionFunctionLiterals(a: A, b: B) {
with (a) A@{
with (b) B@{
with (a) @A{
with (b) @B{
foo {
this == this@foo
c()
Expand Down

0 comments on commit 212bbb4

Please sign in to comment.