t23790.nim 532 B

123456789101112131415
  1. # bug #23790
  2. discard compiles($default(seq[seq[ref int]]))
  3. discard compiles($default(seq[seq[ref uint]]))
  4. discard compiles($default(seq[seq[ref int8]]))
  5. discard compiles($default(seq[seq[ref uint8]]))
  6. discard compiles($default(seq[seq[ref int16]]))
  7. discard compiles($default(seq[seq[ref uint16]]))
  8. discard compiles($default(seq[seq[ref int32]]))
  9. discard compiles($default(seq[seq[ref uint32]]))
  10. discard compiles($default(seq[seq[ref int64]]))
  11. discard compiles($default(seq[seq[ref uint64]]))
  12. proc s(_: int | string) = discard
  13. s(0)