Fixed JS codegen for distinct types
This commit is contained in:
parent
989cdd45ed
commit
0d5b9afb08
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ proc genEnumInfo(p: PProc, typ: PType, name: Rope) =
|
|||
[name, genTypeInfo(p, typ.sons[0])])
|
||||
|
||||
proc genTypeInfo(p: PProc, typ: PType): Rope =
|
||||
let t = typ.skipTypes({tyGenericInst})
|
||||
let t = typ.skipTypes({tyGenericInst, tyDistinct})
|
||||
result = "NTI$1" % [rope(t.id)]
|
||||
if containsOrIncl(p.g.typeInfoGenerated, t.id): return
|
||||
case t.kind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue