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
|
|
@ -155,6 +155,7 @@ proc mapType(conf: ConfigRef; typ: PType): TCTypeKind =
|
|||
of tyNone, tyTyped: result = ctVoid
|
||||
of tyBool: result = ctBool
|
||||
of tyChar: result = ctChar
|
||||
of tyNil: result = ctPtr
|
||||
of tySet: result = mapSetType(conf, typ)
|
||||
of tyOpenArray, tyArray, tyVarargs, tyUncheckedArray: result = ctArray
|
||||
of tyObject, tyTuple: result = ctStruct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue