Quick Fixes: Implement "Create label" quick fix

#KT-8855 Fixed
This commit is contained in:
Alexey Sedunov
2016-12-23 16:30:49 +03:00
parent 534a773816
commit 23ec8f0813
18 changed files with 285 additions and 0 deletions
@@ -0,0 +1,11 @@
// "Create label foo@" "false"
// ERROR: The label '@foo' does not denote a loop
// ERROR: Unresolved reference: @foo
fun bar(f: () -> Unit) { }
fun test() {
while (true) {
bar { break@<caret>foo }
}
}