diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-05 02:53:23 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-05 17:52:22 +0800 |
commit | 96eff0ff6abc614cb44a01137dfd0df1ef750088 (patch) | |
tree | b59ade23a7a3c87f4286400d7a8476acc7f5b892 /libsolidity/ast/ASTJsonConverter.cpp | |
parent | c63efebd4517d51f29082a8d0cff814a4922243d (diff) | |
download | dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.gz dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.bz2 dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.lz dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.xz dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.tar.zst dexon-solidity-96eff0ff6abc614cb44a01137dfd0df1ef750088.zip |
Error when using empty parenthesis for base class constructors that require arguments.
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; } |