diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-21 05:51:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-21 05:51:19 +0800 |
commit | 7e4bd3e3468ec1d240068fde5b45f380cdef411c (patch) | |
tree | 9200ed8674e4d8b1f5eb9d942be4f1808492f02c /libsolidity/analysis | |
parent | edc0530452782ee82b35185579ce5fb7e4584a90 (diff) | |
parent | dbfee87860187e3f3d5b6c06fffe0e601d01d7ea (diff) | |
download | dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar.gz dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.tar.zst dexon-solidity-7e4bd3e3468ec1d240068fde5b45f380cdef411c.zip |
Merge pull request #4219 from ethereum/functionTypeNamedArguments
Turn named return parameters in function types into an error.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/SyntaxChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/SyntaxChecker.cpp b/libsolidity/analysis/SyntaxChecker.cpp index f234dcaf..c408b393 100644 --- a/libsolidity/analysis/SyntaxChecker.cpp +++ b/libsolidity/analysis/SyntaxChecker.cpp @@ -255,7 +255,7 @@ bool SyntaxChecker::visit(FunctionTypeName const& _node) for (auto const& decl: _node.returnParameterTypeList()->parameters()) if (!decl->name().empty()) - m_errorReporter.warning(decl->location(), "Naming function type return parameters is deprecated."); + m_errorReporter.syntaxError(decl->location(), "Return parameters in function types may not be named."); return true; } |