solidity/test/libsolidity/semanticTests/array/byte_array_pop_isolated.sol
2020-03-19 14:42:25 +01:00

14 lines
244 B
Solidity

// This tests that the compiler knows the correct size of the function on the stack.
contract c {
bytes data;
function test() public returns (uint256 x) {
x = 2;
data.pop;
x = 3;
}
}
// ----
// test() -> 3