mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add a parser test for arrays containing functions
This commit is contained in:
@@ -1325,6 +1325,16 @@ BOOST_AUTO_TEST_CASE(calling_function)
|
||||
BOOST_CHECK(successParse(text));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(array_of_functions)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract test {
|
||||
mapping (address => function() internal returns ()) stages;
|
||||
}
|
||||
)";
|
||||
BOOST_CHECK(successParse(text));
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user