mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
byte is now an alias for byte1
This commit is contained in:
parent
6e9d0d7345
commit
f3fc870e03
@ -1393,6 +1393,16 @@ BOOST_AUTO_TEST_CASE(test_fromElementaryTypeName)
|
||||
BOOST_CHECK(*Type::fromElementaryTypeName(Token::Bytes32) == *make_shared<FixedBytesType>(32));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(test_byte_is_alias_of_byte1)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract c {
|
||||
bytes arr;
|
||||
function f() { byte a = arr[0];}
|
||||
})";
|
||||
ETH_TEST_REQUIRE_NO_THROW(parseTextAndResolveNames(text), "Type resolving failed");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user