mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
352 B
Solidity
11 lines
352 B
Solidity
|
contract A {modifier m virtual;}
|
||
|
|
||
|
abstract contract B {modifier m virtual;}
|
||
|
contract C is B { }
|
||
|
|
||
|
abstract contract D {modifier m;}
|
||
|
// ----
|
||
|
// TypeError: (0-32): Contract "A" should be marked as abstract.
|
||
|
// TypeError: (76-95): Contract "C" should be marked as abstract.
|
||
|
// TypeError: (118-129): Modifiers without implementation must be marked virtual.
|