Disallow conversions between bytesX and uintY of different size.

This commit is contained in:
Daniel Kirchner
2018-05-16 18:32:47 +02:00
committed by chriseth
parent 76fc4f8e00
commit 5c59d56335
12 changed files with 73 additions and 19 deletions
@@ -3859,19 +3859,6 @@ BOOST_AUTO_TEST_CASE(conditional_with_all_types)
CHECK_SUCCESS(text);
}
BOOST_AUTO_TEST_CASE(index_access_for_bytes)
{
char const* text = R"(
contract C {
bytes20 x;
function f(bytes16 b) public {
b[uint(x[2])];
}
}
)";
CHECK_SUCCESS(text);
}
BOOST_AUTO_TEST_CASE(uint7_and_uintM_as_identifier)
{
char const* text = R"(