diff options
author | Araq <rumpf_a@web.de> | 2011-08-10 01:16:32 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-10 01:16:32 +0200 |
commit | d5dd4669df9827920e7e9f1864171c09ac15fbb2 (patch) | |
tree | 4b96b78dc0015d95da14c9b1553116958d160402 /compiler | |
parent | 72e7a98543e711164574664b0f280637fce28f89 (diff) | |
download | Nim-d5dd4669df9827920e7e9f1864171c09ac15fbb2.tar.gz |
further tests for var T result type; ttables test now fails :-(
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/semstmts.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index e88fed51a..86d5b0f26 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -178,12 +178,11 @@ proc SemYieldVarResult(c: PContext, n: PNode, restype: PType) = if e.kind == tyVar: if n.sons[0].kind == nkPar: n.sons[0].sons[i] = takeImplicitAddr(c, n.sons[0].sons[i]) - elif n.sons[0].kind == nkHiddenSubConv and + elif n.sons[0].kind in {nkHiddenStdConv, nkHiddenSubConv} and n.sons[0].sons[1].kind == nkPar: var a = n.sons[0].sons[1] a.sons[i] = takeImplicitAddr(c, a.sons[i]) else: - debug n.sons[0] localError(n.sons[0].info, errXExpected, "tuple constructor") else: nil |