mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
6 lines
267 B
Solidity
6 lines
267 B
Solidity
contract B { function f() public {} }
|
|
contract C is B { function f() public view {} }
|
|
// ----
|
|
// TypeError: (56-83): Overriding function is missing 'override' specifier.
|
|
// TypeError: (56-83): Overriding function changes state mutability from "nonpayable" to "view".
|