From 84f0a33bf0b0dc040c97205914d0b03c16e7c71a Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 25 Feb 2019 19:00:52 +0100 Subject: make typeToString sane for sequence again --- compiler/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/types.nim b/compiler/types.nim index 0e2c3b651..86e5e756a 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -430,7 +430,7 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string = result = "" if t == nil: return if prefer in preferToResolveSymbols and t.sym != nil and - sfAnon notin t.sym.flags: + sfAnon notin t.sym.flags and t.kind != tySequence: if t.kind == tyInt and isIntLit(t): result = t.sym.name.s & " literal(" & $t.n.intVal & ")" elif t.kind == tyAlias and t.sons[0].kind != tyAlias: -- cgit 1.4.1-2-gfad0