Resolve parenthesized element as expression
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
class C {
|
||||
|
||||
fun f (<!UNUSED_PARAMETER!>a<!> : Boolean, <!UNUSED_PARAMETER!>b<!> : Boolean) {
|
||||
@b (while (true)
|
||||
@b while (true)
|
||||
@a {
|
||||
<!NOT_A_LOOP_LABEL!>break@f<!>
|
||||
break
|
||||
<!UNREACHABLE_CODE!>break@b<!>
|
||||
<!NOT_A_LOOP_LABEL!>break@a<!>
|
||||
})
|
||||
}
|
||||
|
||||
<!BREAK_OR_CONTINUE_OUTSIDE_A_LOOP!>continue<!>
|
||||
|
||||
@b (while (true)
|
||||
@b while (true)
|
||||
@a {
|
||||
<!NOT_A_LOOP_LABEL!>continue@f<!>
|
||||
continue
|
||||
<!UNREACHABLE_CODE!>continue@b<!>
|
||||
<!NOT_A_LOOP_LABEL!>continue@a<!>
|
||||
})
|
||||
}
|
||||
|
||||
<!BREAK_OR_CONTINUE_OUTSIDE_A_LOOP!>break<!>
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fun test() {
|
||||
(@d <!DECLARATION_IN_ILLEGAL_CONTEXT!>val bar = 2<!>)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
internal fun test(): kotlin.Unit
|
||||
Reference in New Issue
Block a user