diff options
author | Christian <c@ethdev.com> | 2015-02-23 02:37:54 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-02-23 02:37:54 +0800 |
commit | c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c (patch) | |
tree | 31b58acc3b39279d9624e9d502e4032c93206031 /SolidityNameAndTypeResolution.cpp | |
parent | 4144c63d9f1b7b25c4aaee29c21f412590aefe29 (diff) | |
download | dexon-solidity-c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c.tar dexon-solidity-c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c.tar.gz dexon-solidity-c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c.tar.bz2 dexon-solidity-c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c.tar.lz dexon-solidity-c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c.tar.xz dexon-solidity-c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c.tar.zst dexon-solidity-c8d4ab1ca0769ecf8ada7cafc7cb0183f94ff49c.zip |
Replaced "inheritable" by "internal".
Diffstat (limited to 'SolidityNameAndTypeResolution.cpp')
-rw-r--r-- | SolidityNameAndTypeResolution.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp index da6c2a88..df970a6e 100644 --- a/SolidityNameAndTypeResolution.cpp +++ b/SolidityNameAndTypeResolution.cpp @@ -470,7 +470,7 @@ BOOST_AUTO_TEST_CASE(illegal_override_indirect) BOOST_AUTO_TEST_CASE(illegal_override_visibility) { char const* text = R"( - contract B { function f() inheritable {} } + contract B { function f() internal {} } contract C is B { function f() public {} } )"; BOOST_CHECK_THROW(parseTextAndResolveNames(text), TypeError); @@ -706,7 +706,7 @@ BOOST_AUTO_TEST_CASE(private_state_variable) " uint64(2);\n" " }\n" "uint256 private foo;\n" - "uint256 inheritable bar;\n" + "uint256 internal bar;\n" "}\n"; ASTPointer<SourceUnit> source; @@ -717,7 +717,7 @@ BOOST_AUTO_TEST_CASE(private_state_variable) function = retrieveFunctionBySignature(contract, "foo()"); BOOST_CHECK_MESSAGE(function == nullptr, "Accessor function of a private variable should not exist"); function = retrieveFunctionBySignature(contract, "bar()"); - BOOST_CHECK_MESSAGE(function == nullptr, "Accessor function of an inheritable variable should not exist"); + BOOST_CHECK_MESSAGE(function == nullptr, "Accessor function of an internal variable should not exist"); } BOOST_AUTO_TEST_CASE(fallback_function) @@ -832,11 +832,11 @@ BOOST_AUTO_TEST_CASE(access_to_default_function_visibility) BOOST_CHECK_NO_THROW(parseTextAndResolveNames(text)); } -BOOST_AUTO_TEST_CASE(access_to_inheritable_function) +BOOST_AUTO_TEST_CASE(access_to_internal_function) { char const* text = R"( contract c { - function f() inheritable {} + function f() internal {} } contract d { function g() { c(0).f(); } @@ -856,7 +856,7 @@ BOOST_AUTO_TEST_CASE(access_to_default_state_variable_visibility) BOOST_CHECK_THROW(parseTextAndResolveNames(text), TypeError); } -BOOST_AUTO_TEST_CASE(access_to_inheritable_state_variable) +BOOST_AUTO_TEST_CASE(access_to_internal_state_variable) { char const* text = R"( contract c { |