solidity/test/libsolidity/semanticTests/array/bytes_length_member.sol

18 lines
287 B
Solidity
Raw Normal View History

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