Closed
Description
test.nim
var a: string = "foo"
echo a.isNil
$ nim -r c test.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
test.nim(2, 8) Error: usage of 'isNil' is a user-defined error
OS: Manjaro (Arch Linux)
$ nim -v
Nim Compiler Version 0.19.6 [Linux: amd64]
Compiled at 2019-05-14
Copyright (c) 2006-2018 by Andreas Rumpf
active boot switches: -d:release -d:nativeStackTrace
I can't understand how is it that a function as common as that doesn't work. Am I doing something wrong?
btw I noticed the version says it's compiled for an amd, but I'm running an x86-64