fixes #6445 (concepts for the JS target)
This commit is contained in:
parent
75dd3763cf
commit
85b00aff56
1 changed files with 4 additions and 3 deletions
|
|
@ -191,11 +191,12 @@ proc mapType(typ: PType): TJSTypeKind =
|
||||||
of tyObject, tyArray, tyTuple, tyOpenArray, tyVarargs:
|
of tyObject, tyArray, tyTuple, tyOpenArray, tyVarargs:
|
||||||
result = etyObject
|
result = etyObject
|
||||||
of tyNil: result = etyNull
|
of tyNil: result = etyNull
|
||||||
of tyGenericInst, tyGenericParam, tyGenericBody, tyGenericInvocation,
|
of tyGenericParam, tyGenericBody, tyGenericInvocation,
|
||||||
tyNone, tyFromExpr, tyForward, tyEmpty,
|
tyNone, tyFromExpr, tyForward, tyEmpty,
|
||||||
tyExpr, tyStmt, tyTypeDesc, tyTypeClasses, tyVoid, tyAlias:
|
tyExpr, tyStmt, tyTypeDesc, tyBuiltInTypeClass, tyCompositeTypeClass,
|
||||||
|
tyAnd, tyOr, tyNot, tyAnything, tyVoid:
|
||||||
result = etyNone
|
result = etyNone
|
||||||
of tyInferred:
|
of tyGenericInst, tyInferred, tyAlias, tyUserTypeClass, tyUserTypeClassInst:
|
||||||
result = mapType(typ.lastSon)
|
result = mapType(typ.lastSon)
|
||||||
of tyStatic:
|
of tyStatic:
|
||||||
if t.n != nil: result = mapType(lastSon t)
|
if t.n != nil: result = mapType(lastSon t)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue