solidity/test/libsolidity/semanticTests/array/bytes_length_member.sol
2020-10-29 18:53:15 +01:00

19 lines
317 B
Solidity

contract c {
function set() public returns (bool) {
data = msg.data;
return true;
}
function getLength() public returns (uint256) {
return data.length;
}
bytes data;
}
// ====
// compileViaYul: also
// ----
// getLength() -> 0
// set(): 1, 2 -> true
// getLength() -> 68