solidity/test/libsolidity/syntaxTests/inheritance/virtual/duplicate.sol

9 lines
217 B
Solidity

contract C
{
function foo() virtual public virtual {}
modifier modi() virtual virtual {_;}
}
// ----
// ParserError 6879: (44-51): Virtual already specified.
// ParserError 2662: (80-87): Virtual already specified.