This commit is contained in:
Araq
2015-04-11 02:54:20 +02:00
parent a1b937ab33
commit 06feaef64a
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,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)