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,7 +1,7 @@
|
||||
class A {
|
||||
init {
|
||||
<!RETURN_NOT_ALLOWED!>return<!>
|
||||
<!RETURN_NOT_ALLOWED, UNREACHABLE_CODE!>return 1<!>
|
||||
<!UNREACHABLE_CODE!><!RETURN_NOT_ALLOWED!>return<!> 1<!>
|
||||
}
|
||||
constructor() <!UNREACHABLE_CODE!>{
|
||||
if (1 == 1) {
|
||||
|
||||
Reference in New Issue
Block a user