simple.sol 226 B

123456789101112
  1. contract A {}
  2. library L {}
  3. error E(int foo);
  4. struct S {
  5. int64 f1;
  6. bool f2;
  7. }
  8. function inc(S s) pure { s.f1 += 1; }
  9. using {inc} for S global;
  10. // ---- Expect: diagnostics ----
  11. // warning: 3:7-8: error 'E' has never been used