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

12 lines
345 B
Solidity

interface A {
function test() external returns (uint256);
function test2() external returns (uint256);
function test3() external returns (uint256);
}
contract X is A {
function test() external override returns (uint256) {}
function test2() external override(A) returns (uint256) {}
function test3() external returns (uint256) {}
}
// ----