using_literal.sol 204 B

1234567891011
  1. function double(int x) pure returns (int) { return x * 2; }
  2. using {double} for int;
  3. contract C {
  4. function foo() pure public returns (int) {
  5. return 42.double();
  6. }
  7. }
  8. // ---- Expect: diagnostics ----