tdanger.nim 219 B

123456789101112131415161718
  1. discard """
  2. matrix: ";--d:danger"
  3. """
  4. block:
  5. proc foo() =
  6. var name = int64(12)
  7. var x = uint32(name)
  8. var m = x + 12
  9. var y = int32(name)
  10. var n = y + 1
  11. doAssert m == uint32(n + 11)
  12. foo()