-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: identifier expected, but found '(0, 0)[0]'
with let _ =
in for _ in r.fields
#24339
Comments
!nim c const r = (0, 0)
for _ in r.fields:
let _ = 0 |
🐧 Linux bisect by @ringabout (member)devel 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkTupleConstr.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) stable 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkTupleConstr.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) 2.0.10 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkTupleConstr.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) 2.0.0 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkTupleConstr.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) 1.6.20 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkTupleConstr.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) 1.4.8 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkPar.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) 1.2.18 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkPar.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) 1.0.10 👎 FAILOutput
IRCompiled filesize0 (0 bytes)
Stats
ASTnnkStmtList.newTree(
nnkConstSection.newTree(
nnkConstDef.newTree(
newIdentNode("r"),
newEmptyNode(),
nnkPar.newTree(
newLit(0),
newLit(0)
)
)
),
nnkForStmt.newTree(
newIdentNode("_"),
nnkDotExpr.newTree(
newIdentNode("r"),
newIdentNode("fields")
),
nnkStmtList.newTree(
nnkLetSection.newTree(
nnkIdentDefs.newTree(
newIdentNode("_"),
newEmptyNode(),
newLit(0)
)
)
)
)
) Stats
🤖 Bug found in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Nim Version
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: