solidity/test/libsolidity/syntaxTests/inheritance/override/calldata_memory.sol
Daniel Kirchner 597174119a Tests.
2018-11-26 14:30:32 +01:00

14 lines
465 B
Solidity

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 {
function f(uint[] memory) public pure {}
function g(uint[] memory) public view { dummy; }
function h(uint[] memory) public { dummy = 42; }
function i(uint[] memory) public payable {}
}