aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityNameAndTypeResolution.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-26 19:11:54 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-02 18:51:13 +0800
commit285a376248018de08883c396b43f2cea90e9e53b (patch)
tree780d61076600fe73efcac0f491d21116db66ddfa /SolidityNameAndTypeResolution.cpp
parent41f9399a32a200d8e133fac9c39d85cb7b62108c (diff)
downloaddexon-solidity-285a376248018de08883c396b43f2cea90e9e53b.tar.gz
dexon-solidity-285a376248018de08883c396b43f2cea90e9e53b.tar.zst
dexon-solidity-285a376248018de08883c396b43f2cea90e9e53b.zip
Add structs to inheritable members
Diffstat (limited to 'SolidityNameAndTypeResolution.cpp')
-rw-r--r--SolidityNameAndTypeResolution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp
index e4764c5e..9db45b91 100644
--- a/SolidityNameAndTypeResolution.cpp
+++ b/SolidityNameAndTypeResolution.cpp
@@ -726,8 +726,8 @@ BOOST_AUTO_TEST_CASE(base_class_state_variable_accessor)
char const* text = "contract Parent {\n"
" uint256 public m_aMember;\n"
"}\n"
- "contract Child {\n"
- " function foo() returns (uint256) { return Parent.m_aMember(); }\n"
+ "contract Child is Parent{\n"
+ " function foo() returns (uint256) { return Parent.m_aMember; }\n"
"}\n";
BOOST_CHECK_NO_THROW(parseTextAndResolveNamesWithChecks(text));
}