better error message for subtle nil errors

This commit is contained in:
Araq 2013-05-31 01:27:03 +02:00
commit 8c211113f2
4 changed files with 8 additions and 3 deletions

View file

@ -92,7 +92,7 @@ var
gOptions*: TOptions = {optObjCheck, optFieldCheck, optRangeCheck,
optBoundsCheck, optOverflowCheck, optAssert, optWarns,
optHints, optStackTrace, optLineTrace,
optPatterns}
optPatterns, optNilCheck}
gGlobalOptions*: TGlobalOptions = {optThreadAnalysis}
gExitcode*: int8
gCmd*: TCommands = cmdNone # the command