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:
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun f() {
|
||||
foo {
|
||||
bar {
|
||||
<!RETURN_NOT_ALLOWED!>return@foo 1<!>
|
||||
<!RETURN_NOT_ALLOWED!>return@foo<!> 1
|
||||
}
|
||||
return@foo 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user