tnilref.nim 101 B

1234567
  1. discard """
  2. errormsg: "attempt to access a nil address"
  3. """
  4. static:
  5. var s: ref int
  6. s[] = 1