Java: improve error message on return statement with value in constructor (IDEA-341462)

GitOrigin-RevId: bfccfa5f988469dc67df16e441f3d6f882853149
This commit is contained in:
Bas Leijdekkers
2023-12-20 12:53:43 +01:00
committed by intellij-monorepo-bot
parent 8ca58aaa0f
commit 6b0ded8130
4 changed files with 24 additions and 1 deletions

View File

@@ -206,6 +206,7 @@ binary.operator.not.applicable=Operator ''{0}'' cannot be applied to ''{1}'', ''
unary.operator.not.applicable=Operator ''{0}'' cannot be applied to ''{1}''
return.outside.method=Return outside method
return.from.void.method=Cannot return a value from a method with void result type
return.from.constructor=Cannot return a value from a constructor
missing.return.value=Missing return value
return.outside.switch.expr=Return outside of enclosing switch expression
impossible.assign.declared.outside.guard=Cannot assign a value to variable ''{0}'', because it is declared outside the guard