From 4550a2fb5c3e9672ea0e539af9f3bd2dd28651ee Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 26 Apr 2015 22:29:55 +0200 Subject: fixes #2602 --- compiler/semexprs.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/semexprs.nim') diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 361608a5c..a2e3b9d33 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -447,6 +447,7 @@ proc changeType(n: PNode, newType: PType, check: bool) = of nkPar: let tup = newType.skipTypes({tyGenericInst}) if tup.kind != tyTuple: + if tup.kind == tyObject: return internalError(n.info, "changeType: no tuple type for constructor") elif sonsLen(n) > 0 and n.sons[0].kind == nkExprColonExpr: # named tuple? -- cgit 1.4.1-2-gfad0 n> 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/.travis.yml
blob: d62fe20d24c28f3f39524941d9d2154051268236 (plain) (tree)
1
2
3
4
5
6
7
8
9
10