Add structs to inheritable members

This commit is contained in:
Lefteris Karapetsas 2015-02-26 12:11:54 +01:00
parent 41f9399a32
commit 285a376248

View File

@ -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));
} }