Allow typeof(nil) as a return type
This commit is contained in:
parent
9ae0dd611f
commit
efe1bed82e
4 changed files with 8 additions and 2 deletions
|
|
@ -1600,6 +1600,8 @@ proc createVar(p: PProc, typ: PType, indirect: bool): Rope =
|
|||
result = putToSeq("{}", indirect)
|
||||
of tyBool:
|
||||
result = putToSeq("false", indirect)
|
||||
of tyNil:
|
||||
result = putToSeq("null", indirect)
|
||||
of tyArray:
|
||||
let length = toInt(lengthOrd(p.config, t))
|
||||
let e = elemType(t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue