allow 'nil ref T' as a first step which does nothing

This commit is contained in:
Araq
2015-11-19 09:14:41 +01:00
parent 0dcaf27b64
commit a2480efd68
2 changed files with 19 additions and 9 deletions

View File

@@ -2584,11 +2584,7 @@ when not defined(JS): #and not defined(nimscript):
when hasAlloc:
var
strDesc: TNimType
strDesc.size = sizeof(string)
strDesc.kind = tyString
strDesc.flags = {ntfAcyclic}
strDesc = TNimType(size: sizeof(string), kind: tyString, flags: {ntfAcyclic})
when not defined(nimscript):
include "system/ansi_c"