Files
Nim/tests/exception/t22469.nim

17 lines
312 B
Nim

discard """
exitcode: 1
output: '''
First top-level statement of ModuleB
m22469.nim(3) m22469
fatal.nim(62) sysFatal
Error: unhandled exception: over- or underflow [OverflowDefect]
'''
"""
# bug #22469
# ModuleA
import m22469
echo "ModuleA about to have exception"
echo high(int) + 1