fixes #914
This commit is contained in:
parent
09c8a51348
commit
49fa421ba7
4 changed files with 7 additions and 3 deletions
|
|
@ -185,7 +185,7 @@ proc mapType(typ: PType): TCTypeKind =
|
|||
of tyPtr, tyVar, tyRef:
|
||||
var base = skipTypes(typ.sons[0], typedescInst)
|
||||
case base.kind
|
||||
of tyOpenArray, tyArrayConstr, tyArray, tyVarargs: result = ctArray
|
||||
of tyOpenArray, tyArrayConstr, tyArray, tyVarargs: result = ctPtrToArray
|
||||
else: result = ctPtr
|
||||
of tyPointer: result = ctPtr
|
||||
of tySequence: result = ctNimSeq
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue