mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
201 B
Solidity
10 lines
201 B
Solidity
contract Test {
|
|
function bytesToBytes(bytes2 input) public returns (bytes4 ret) {
|
|
return bytes4(input);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// bytesToBytes(bytes2): "ab" -> "ab"
|