summary refs log tree commit diff stats
path: root/tests/misc/tmissingnilcheck.nim
blob: c2f23ae87a0e1b2ab95c0ec87aa8859c525291d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
discard """
  disabled: true
"""

type
  PFutureBase = ref object
    callback: proc () {.closure.}

proc newConnection =
  iterator newConnectionIter(): PFutureBase {.closure.} =
    discard
  var newConnectionIterVar = newConnectionIter
  var first = newConnectionIterVar()

  proc cb {.closure.} =
    discard
  
  first.callback = cb

newConnection()