diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-11-25 15:03:19 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-11-25 15:03:19 +0100 |
commit | cfe4e78aa65c3f3ac687e7d9b880bf78bd3bcc4c (patch) | |
tree | c5cf3fc149d1352c6fc01234f50c703f2c4b3b11 | |
parent | d3b69e515f8b395f32f690bff55d50c79f80e45f (diff) | |
parent | 0d5b9afb0819d16212fc5351b2cadcb7d6d18afa (diff) | |
download | Nim-cfe4e78aa65c3f3ac687e7d9b880bf78bd3bcc4c.tar.gz |
Merge pull request #3580 from yglukhov/js-distinct-type
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 |