[FIR] Implement FirReturnAllowedChecker
Supported diagnostics: - RETURN_NOT_ALLOWED - RETURN_IN_FUNCTION_WITH_EXPRESSION_BODY
This commit is contained in:
committed by
TeamCityServer
parent
254ff77977
commit
3cb17ac2f0
@@ -1,8 +1,8 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
class A {
|
||||
init {
|
||||
return
|
||||
return 1
|
||||
<!RETURN_NOT_ALLOWED!>return<!>
|
||||
<!RETURN_NOT_ALLOWED!>return<!> 1
|
||||
}
|
||||
constructor() {
|
||||
if (1 == 1) {
|
||||
|
||||
Reference in New Issue
Block a user