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

6 lines
152 B
Solidity
Raw Normal View History

library L {
function f() internal pure virtual returns (uint) { return 0; }
}
// ----
// TypeError: (16-79): Library functions cannot be "virtual".