using_03.sol 312 B

123456789101112
  1. library x {
  2. function max(uint64 a, uint64 b) private pure returns (uint64) {
  3. return a > b ? a : b;
  4. }
  5. }
  6. contract c {
  7. using x for x;
  8. }
  9. // ---- Expect: diagnostics ----
  10. // error: 9:25-26: using for library 'x' type not permitted