solidity/test/libsolidity/semanticTests/types/convert_fixed_bytes_to_fixed_bytes_greater_size.sol

10 lines
201 B
Solidity
Raw Normal View History

2019-07-10 15:23:19 +00:00
contract Test {
function bytesToBytes(bytes2 input) public returns (bytes4 ret) {
return bytes4(input);
}
}
// ====
// compileViaYul: also
// ----
// bytesToBytes(bytes2): "ab" -> "ab"