Nim/tests/types/tillegaltyperecursion.nim
metagn f4af9e955b
remove some deprecated pre-1.0 stdlib modules (#20202)
* remove pre-1.0 stdlib deprecations

notable exceptions:
* ze, toU8 etc in system/arithmetics
* potentially callsite

* undo macros, ospaths, securehash, oswalkdir

* add sets back

* add back future, document deprecated versions

* add to changelog [skip ci]
2022-08-23 20:18:40 +02:00

17 lines
291 B
Nim

discard """
cmd: "nim $target --threads:on $options $file"
errormsg: "illegal recursion in type 'TIRC'"
line: 12
"""
import net
import strutils
import os
type
TIRC = object
Socket: Socket
Thread: Thread[TIRC]
proc initIRC*(): TIRC =
result.Socket = socket()