This commit is contained in:
Araq
2015-02-20 18:50:17 +01:00
parent 540f66cb09
commit aef7be2e79
2 changed files with 20 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
discard """
output: '''n
n'''
"""
# bug #1902
# This works.
for name, value in (n: "v").fieldPairs:
echo name
# This doesn't compile - "expression 'name' has no type (or is ambiguous)".
template wrapper: stmt =
for name, value in (n: "v").fieldPairs:
echo name
wrapper()