summary refs log blame commit diff stats
path: root/tests/misc/tmissingnilcheck.nim
blob: 461fb18f4dc6e4e0f68466775366e66bd1b2a140 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                         
 


                     
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()