diff options
author | chriseth <c@ethdev.com> | 2015-06-10 21:35:28 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-10 21:35:28 +0800 |
commit | 02379492122d420d454bb8e7e3825515b882101e (patch) | |
tree | adf4787966be17a003198d29abb53614ffce2b87 /libsolidity/SolidityNameAndTypeResolution.cpp | |
parent | 87b09c3ed40ce80ab46cdb48ba3bc3fcc733ea4e (diff) | |
parent | 4967535f8a9b46edfa029793e9d38125afd886cf (diff) | |
download | dexon-solidity-02379492122d420d454bb8e7e3825515b882101e.tar.gz dexon-solidity-02379492122d420d454bb8e7e3825515b882101e.tar.zst dexon-solidity-02379492122d420d454bb8e7e3825515b882101e.zip |
Merge pull request #2114 from LianaHus/sol_byte0_in_storage
Sol removed bytes0
Diffstat (limited to 'libsolidity/SolidityNameAndTypeResolution.cpp')
-rw-r--r-- | libsolidity/SolidityNameAndTypeResolution.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libsolidity/SolidityNameAndTypeResolution.cpp b/libsolidity/SolidityNameAndTypeResolution.cpp index 73bbcb16..b078fe6a 100644 --- a/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/libsolidity/SolidityNameAndTypeResolution.cpp @@ -1579,7 +1579,6 @@ BOOST_AUTO_TEST_CASE(test_fromElementaryTypeName) BOOST_CHECK(*Type::fromElementaryTypeName(Token::UInt256) == *make_shared<IntegerType>(256, IntegerType::Modifier::Unsigned)); BOOST_CHECK(*Type::fromElementaryTypeName(Token::Byte) == *make_shared<FixedBytesType>(1)); - BOOST_CHECK(*Type::fromElementaryTypeName(Token::Bytes0) == *make_shared<FixedBytesType>(0)); BOOST_CHECK(*Type::fromElementaryTypeName(Token::Bytes1) == *make_shared<FixedBytesType>(1)); BOOST_CHECK(*Type::fromElementaryTypeName(Token::Bytes2) == *make_shared<FixedBytesType>(2)); BOOST_CHECK(*Type::fromElementaryTypeName(Token::Bytes3) == *make_shared<FixedBytesType>(3)); @@ -1666,16 +1665,6 @@ BOOST_AUTO_TEST_CASE(local_const_variable) BOOST_CHECK_THROW(parseTextAndResolveNames(text), ParserError); } -BOOST_AUTO_TEST_CASE(bytes0_array) -{ - char const* text = R"( - contract Foo { - bytes0[] illegalArray; - } - )"; - BOOST_CHECK_THROW(parseTextAndResolveNames(text), TypeError); -} - BOOST_AUTO_TEST_CASE(overloaded_function_cannot_resolve) { char const* sourceCode = R"( |