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














                                     
discard """
  output: "is Nil false"
"""
# bug #1658

type
  Loop* = ref object
    onBeforeSelect*: proc (L: Loop)

var L: Loop
new L
L.onBeforeSelect = proc (bar: Loop) =
  echo "is Nil ", bar.isNil

L.onBeforeSelect(L)