diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-08 19:08:22 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-08 19:53:25 +0800 |
commit | 1ac5f3c04d3df03df4ae2997c1a2ea0ced9f1311 (patch) | |
tree | 3dd0dd5ca03e0cca6a5a28d536a6bd9f133c7ea0 /libsolidity/SolidityNameAndTypeResolution.cpp | |
parent | 46eb7b08d9fe52f73895bae46648a79cea15c64e (diff) | |
download | dexon-solidity-1ac5f3c04d3df03df4ae2997c1a2ea0ced9f1311.tar.gz dexon-solidity-1ac5f3c04d3df03df4ae2997c1a2ea0ced9f1311.tar.zst dexon-solidity-1ac5f3c04d3df03df4ae2997c1a2ea0ced9f1311.zip |
removed byte0 keyword
Diffstat (limited to 'libsolidity/SolidityNameAndTypeResolution.cpp')
-rw-r--r-- | libsolidity/SolidityNameAndTypeResolution.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libsolidity/SolidityNameAndTypeResolution.cpp b/libsolidity/SolidityNameAndTypeResolution.cpp index 73bbcb16..ca89f42b 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)); @@ -1673,7 +1672,7 @@ BOOST_AUTO_TEST_CASE(bytes0_array) bytes0[] illegalArray; } )"; - BOOST_CHECK_THROW(parseTextAndResolveNames(text), TypeError); + BOOST_CHECK_THROW(parseTextAndResolveNames(text), DeclarationError); } BOOST_AUTO_TEST_CASE(overloaded_function_cannot_resolve) |