restrictions_07.sol 257 B

12345678910
  1. library c {
  2. function foo() public { }
  3. }
  4. contract a is c {
  5. function bar() public { }
  6. }
  7. // ---- Expect: diagnostics ----
  8. // error: 6:23-24: library 'c' cannot be used as base contract for contract 'a'