diff options
author | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2015-11-23 21:14:15 +0200 |
---|---|---|
committer | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2015-11-23 21:14:15 +0200 |
commit | 0d5b9afb0819d16212fc5351b2cadcb7d6d18afa (patch) | |
tree | 62207b9f1895541c3c6e170dc7f8cd019c695151 | |
parent | 989cdd45ed1b733798073ea75d3bce1cee47c57b (diff) | |
download | Nim-0d5b9afb0819d16212fc5351b2cadcb7d6d18afa.tar.gz |
Fixed JS codegen for distinct types
-rw-r--r-- | compiler/jstypes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jstypes.nim b/compiler/jstypes.nim index 367c173ea..611f50eaf 100644 --- a/compiler/jstypes.nim +++ b/compiler/jstypes.nim @@ -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 |