tillegaltyperecursion.nim 291 B

123456789101112131415161718
  1. discard """
  2. cmd: "nim $target --threads:on $options $file"
  3. errormsg: "illegal recursion in type 'TIRC'"
  4. line: 12
  5. """
  6. import net
  7. import strutils
  8. import os
  9. type
  10. TIRC = object
  11. Socket: Socket
  12. Thread: Thread[TIRC]
  13. proc initIRC*(): TIRC =
  14. result.Socket = socket()