Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
labels
/
kt361.kt
blob: aeacad2a9b4890489af3aaee31b67ad7f4fe8dea [
file
]
// FIR_IDENTICAL
fun nonlocals
(
b
:
Boolean
)
{
a@
{
fun foo
()
{
if
(
b
)
{
<!
RETURN_NOT_ALLOWED
!>
return
@a
<!>
1
// The label must be resolved, but an error should be reported for a non-local return
}
}
return
@a
5
}
}