aboutsummaryrefslogtreecommitdiff
path: root/src/parse.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.cff')
-rw-r--r--src/parse.cff2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.cff b/src/parse.cff
index 5a50e96..752165b 100644
--- a/src/parse.cff
+++ b/src/parse.cff
@@ -2794,7 +2794,7 @@ fn parsedecls(P *Parser, loc Loc, yield DeclYielder, yarg *void, toplevel bool)
let path = (tok = lexexpects(P, :str, "import path")).u.str.#ptr;
let decls = doimport(P, tok.loc, path);
foreach(decl, _, decls) {
- let decl = putdecl(P, tok.loc, decl);
+ let decl = putdecl(P, decl.loc, decl);
if yield {
yield(decl, yarg);
}