tnewderef.nim 71 B

123456789101112
  1. discard """
  2. output: 3
  3. """
  4. var x: ref int
  5. new(x)
  6. x[] = 3
  7. echo x[]