Rename: Support labeled expressions

#KT-7107 Fixed
This commit is contained in:
Alexey Sedunov
2017-04-24 20:22:07 +03:00
parent 63d32a524c
commit 3c94184de9
46 changed files with 395 additions and 52 deletions
+5
View File
@@ -0,0 +1,5 @@
fun <R> foo(f: () -> R) = f()
fun test() {
foo (<info descr="null">~bar</info>@ fun(): Boolean { return@<info descr="null">bar</info> false })
}
+5
View File
@@ -0,0 +1,5 @@
fun <R> foo(f: () -> R) = f()
fun test() {
foo <info descr="null">~bar</info>@ { return@<info descr="null">bar</info> false }
}
+6
View File
@@ -0,0 +1,6 @@
fun test() {
<info descr="null">~foo</info>@ for (n in 1..10) {
if (n == 5) continue@<info descr="null">foo</info>
if (n > 8) break@<info descr="null">foo</info>
}
}