large_ints.sol 337 B

123456789101112
  1. contract c {
  2. function test() public {
  3. uint x = -80 ** 512;
  4. int y = 80 << 100000;
  5. int z = -80 << 100000;
  6. }
  7. }
  8. // ---- Expect: diagnostics ----
  9. // error: 3:12-22: value is too large to fit into type uint256
  10. // error: 4:11-23: value is too large to fit into type int256
  11. // error: 5:11-24: value is too large to fit into type int256