Created
April 30, 2015 13:25
-
-
Save bluenote10/d83eb35a34de309af177 to your computer and use it in GitHub Desktop.
Testing not nil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
Test = object | |
field: seq[int] not nil | |
var t: Test | |
echo t.field.isNil() # true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment