diff options
author | Christian <c@ethdev.com> | 2015-01-20 04:05:47 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-20 06:35:04 +0800 |
commit | fe770957c68007ccf86eddb639b596e78fd7b9ba (patch) | |
tree | 2d4055fcc9b141551d60afaf0977e750e72cc8cd | |
parent | 2e846c495b737b7d300fbf92b05881b4acb4ea36 (diff) | |
download | dexon-solidity-fe770957c68007ccf86eddb639b596e78fd7b9ba.tar.gz dexon-solidity-fe770957c68007ccf86eddb639b596e78fd7b9ba.tar.zst dexon-solidity-fe770957c68007ccf86eddb639b596e78fd7b9ba.zip |
Constructor arguments for base classes.
-rw-r--r-- | SolidityParser.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/SolidityParser.cpp b/SolidityParser.cpp index f18c530b..91e57130 100644 --- a/SolidityParser.cpp +++ b/SolidityParser.cpp @@ -525,6 +525,21 @@ BOOST_AUTO_TEST_CASE(contract_multiple_inheritance) BOOST_CHECK_NO_THROW(parseText(text)); } +BOOST_AUTO_TEST_CASE(contract_multiple_inheritance_with_arguments) +{ + char const* text = "contract base {\n" + " function fun() {\n" + " uint64(2);\n" + " }\n" + "}\n" + "contract derived is base(2), nonExisting(\"abc\", \"def\", base.fun()) {\n" + " function fun() {\n" + " uint64(2);\n" + " }\n" + "}\n"; + BOOST_CHECK_NO_THROW(parseText(text)); +} + BOOST_AUTO_TEST_SUITE_END() } |