diff options
author | Araq <rumpf_a@web.de> | 2015-04-26 22:29:55 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-26 22:44:06 +0200 |
commit | 4550a2fb5c3e9672ea0e539af9f3bd2dd28651ee (patch) | |
tree | e8dc3e6052a28620808406996b7911fdff7d205d /compiler | |
parent | 22b5f4df545fd1f096a4f30aaec5b827e9e6b422 (diff) | |
download | Nim-4550a2fb5c3e9672ea0e539af9f3bd2dd28651ee.tar.gz |
fixes #2602
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semexprs.nim | 1 |
1 files changed, 1 insertions, 0 deletions
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? |