mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
21 lines
353 B
Nim
21 lines
353 B
Nim
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()
|