Report RETURN_NOT_ALLOWED and RETURN_IN_FUNCTION_WITH_EXPRESSION_BODY only on the return with label (KT-13340)

#KT-13340 Fixed
This commit is contained in:
Nikolay Krasko
2016-08-04 13:29:44 +03:00
parent 95ea191442
commit 300e0acd27
21 changed files with 70 additions and 32 deletions
@@ -1,7 +1,7 @@
fun f() {
foo {
bar {
<!RETURN_NOT_ALLOWED!>return@foo 1<!>
<!RETURN_NOT_ALLOWED!>return@foo<!> 1
}
return@foo 1
}