From 0d5b9afb0819d16212fc5351b2cadcb7d6d18afa Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Mon, 23 Nov 2015 21:14:15 +0200 Subject: Fixed JS codegen for distinct types --- compiler/jstypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0 '> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/nimsuggest/tests/tobj_highlight.nim
blob: c37bab183aea5649294deeee9dae3f2a8571fee4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11