diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-05 20:43:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 20:43:28 +0800 |
commit | 037eba20fc6c25777e930d97c1f53f26c6443bb0 (patch) | |
tree | b2ea415859768ee046f5d8f93ef4741c25f1a19d /libsolidity/ast/ASTJsonConverter.cpp | |
parent | 36d6c27e6826f173b491a7a536a3755609edaa29 (diff) | |
parent | 96eff0ff6abc614cb44a01137dfd0df1ef750088 (diff) | |
download | dexon-solidity-037eba20fc6c25777e930d97c1f53f26c6443bb0.tar dexon-solidity-037eba20fc6c25777e930d97c1f53f26c6443bb0.tar.gz dexon-solidity-037eba20fc6c25777e930d97c1f53f26c6443bb0.tar.bz2 dexon-solidity-037eba20fc6c25777e930d97c1f53f26c6443bb0.tar.lz dexon-solidity-037eba20fc6c25777e930d97c1f53f26c6443bb0.tar.xz dexon-solidity-037eba20fc6c25777e930d97c1f53f26c6443bb0.tar.zst dexon-solidity-037eba20fc6c25777e930d97c1f53f26c6443bb0.zip |
Merge pull request #3824 from ethereum/baseArgumentsEmptyParenthesis
Error when using empty parentheses for base class constructors that r…
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.cpp')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index 4fef67c3..94932eca 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -268,7 +268,7 @@ bool ASTJsonConverter::visit(InheritanceSpecifier const& _node) { setJsonNode(_node, "InheritanceSpecifier", { make_pair("baseName", toJson(_node.name())), - make_pair("arguments", toJson(_node.arguments())) + make_pair("arguments", _node.arguments() ? toJson(*_node.arguments()) : Json::Value(Json::arrayValue)) }); return false; } |