solidity/test/libsolidity/syntaxTests/inheritance/override/override.sol
2019-11-14 11:49:39 +01:00

12 lines
331 B
Solidity

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