mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
allow 'nil ref T' as a first step which does nothing
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user