solidity/test/libsolidity/syntaxTests/inheritance/override/calldata_memory.sol

14 lines
501 B
Solidity
Raw Normal View History

2018-11-12 14:14:13 +00:00
contract A {
uint dummy;
function f(uint[] calldata) external pure {}
function g(uint[] calldata) external view { dummy; }
function h(uint[] calldata) external { dummy = 42; }
function i(uint[] calldata) external payable {}
}
contract B is A {
2019-09-16 12:33:43 +00:00
function f(uint[] memory) public override pure {}
function g(uint[] memory) public override view { dummy; }
function h(uint[] memory) public override { dummy = 42; }
function i(uint[] memory) public override payable {}
2018-11-12 14:14:13 +00:00
}