block.sol 294 B

12345678910
  1. contract bar {
  2. function test() public {
  3. int64 b = block.number;
  4. assert(b == 14_250_083_331_950_119_597);
  5. }
  6. }
  7. // ---- Expect: diagnostics ----
  8. // error: 4:27-39: implicit conversion would change sign from uint64 to int64