aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SolidityNameAndTypeResolution.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp
index 9db45b91..58cebaeb 100644
--- a/SolidityNameAndTypeResolution.cpp
+++ b/SolidityNameAndTypeResolution.cpp
@@ -436,7 +436,7 @@ BOOST_AUTO_TEST_CASE(inheritance_diamond_basic)
function g() { f(); rootFunction(); }
}
)";
- BOOST_CHECK_NO_THROW(parseTextAndResolveNames(text));
+ BOOST_CHECK_NO_THROW(parseTextAndResolveNamesWithChecks(text));
}
BOOST_AUTO_TEST_CASE(cyclic_inheritance)
@@ -732,6 +732,17 @@ BOOST_AUTO_TEST_CASE(base_class_state_variable_accessor)
BOOST_CHECK_NO_THROW(parseTextAndResolveNamesWithChecks(text));
}
+BOOST_AUTO_TEST_CASE(base_class_state_variable_internal_member)
+{
+ char const* text = "contract Parent {\n"
+ " uint256 internal m_aMember;\n"
+ "}\n"
+ "contract Child is Parent{\n"
+ " function foo() returns (uint256) { return Parent.m_aMember; }\n"
+ "}\n";
+ BOOST_CHECK_NO_THROW(parseTextAndResolveNamesWithChecks(text));
+}
+
BOOST_AUTO_TEST_CASE(fallback_function)
{
char const* text = R"(