mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add structs to inheritable members
This commit is contained in:
parent
41f9399a32
commit
285a376248
@ -726,8 +726,8 @@ BOOST_AUTO_TEST_CASE(base_class_state_variable_accessor)
|
|||||||
char const* text = "contract Parent {\n"
|
char const* text = "contract Parent {\n"
|
||||||
" uint256 public m_aMember;\n"
|
" uint256 public m_aMember;\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"contract Child {\n"
|
"contract Child is Parent{\n"
|
||||||
" function foo() returns (uint256) { return Parent.m_aMember(); }\n"
|
" function foo() returns (uint256) { return Parent.m_aMember; }\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
BOOST_CHECK_NO_THROW(parseTextAndResolveNamesWithChecks(text));
|
BOOST_CHECK_NO_THROW(parseTextAndResolveNamesWithChecks(text));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user