aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-06-14 23:32:09 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-06-18 06:05:06 +0800
commitdbfee87860187e3f3d5b6c06fffe0e601d01d7ea (patch)
treebef9bf79829180c3444c0fdc7d08c87b5406212f /libsolidity
parentdc5cd3e1e7db933493fe1b0dc12e5ecdf2a50ed7 (diff)
downloaddexon-solidity-dbfee87860187e3f3d5b6c06fffe0e601d01d7ea.tar
dexon-solidity-dbfee87860187e3f3d5b6c06fffe0e601d01d7ea.tar.gz
dexon-solidity-dbfee87860187e3f3d5b6c06fffe0e601d01d7ea.tar.bz2
dexon-solidity-dbfee87860187e3f3d5b6c06fffe0e601d01d7ea.tar.lz
dexon-solidity-dbfee87860187e3f3d5b6c06fffe0e601d01d7ea.tar.xz
dexon-solidity-dbfee87860187e3f3d5b6c06fffe0e601d01d7ea.tar.zst
dexon-solidity-dbfee87860187e3f3d5b6c06fffe0e601d01d7ea.zip
Return parameters in function types may not be named.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/SyntaxChecker.cpp2
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;
}