solidity/test/libsolidity/syntaxTests/inheritance/override/override.sol
2019-12-05 12:48:52 +00:00

10 lines
275 B
Solidity

abstract contract A {
function test() internal virtual returns (uint256);
function test2() internal virtual returns (uint256);
}
contract X is A {
function test() internal override returns (uint256) {}
function test2() internal override(A) returns (uint256) {}
}
// ----