Print warning for unnamed return parameters and no return statement

This commit is contained in:
Mathias Baumann
2020-10-13 13:11:29 +02:00
parent abfa136afb
commit 32b4f18023
54 changed files with 139 additions and 31 deletions
@@ -4,3 +4,5 @@ contract C {
function h() public { h(); g(); f(); }
function i() payable public { i(); h(); g(); f(); }
}
// ----
// Warning 6321: (89-93): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.