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

9 lines
247 B
Solidity
Raw Normal View History

abstract contract C {
function foo() external pure virtual returns (uint);
}
contract X is C {
uint public override foo;
}
// ----
// TypeError 6959: (100-124): Overriding public state variable changes state mutability from "pure" to "view".