allow 'nil ref T' as a first step which does nothing
This commit is contained in:
parent
0dcaf27b64
commit
a2480efd68
2 changed files with 19 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue