mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
533 B
Solidity
14 lines
533 B
Solidity
contract A {
|
|
uint dummy;
|
|
function f(uint[] calldata) external virtual pure {}
|
|
function g(uint[] calldata) external virtual view { dummy; }
|
|
function h(uint[] calldata) external virtual { dummy = 42; }
|
|
function i(uint[] calldata) external virtual payable {}
|
|
}
|
|
contract B is A {
|
|
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 {}
|
|
}
|