t22469.nim 312 B

1234567891011121314151617
  1. discard """
  2. exitcode: 1
  3. output: '''
  4. First top-level statement of ModuleB
  5. m22469.nim(3) m22469
  6. fatal.nim(53) sysFatal
  7. Error: unhandled exception: over- or underflow [OverflowDefect]
  8. '''
  9. """
  10. # bug #22469
  11. # ModuleA
  12. import m22469
  13. echo "ModuleA about to have exception"
  14. echo high(int) + 1