solidity/test/libsolidity/semanticTests/types/convert_fixed_bytes_to_fixed_bytes_greater_size.sol
2019-07-22 16:31:46 +02:00

10 lines
201 B
Solidity

contract Test {
function bytesToBytes(bytes2 input) public returns (bytes4 ret) {
return bytes4(input);
}
}
// ====
// compileViaYul: also
// ----
// bytesToBytes(bytes2): "ab" -> "ab"