aboutsummaryrefslogtreecommitdiff
path: root/src/parse.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-24 19:52:42 +0200
committerlemon <lsof@mailbox.org>2022-08-24 19:52:42 +0200
commit4f479ac68028a89c8e545f72335642c42a5c4efe (patch)
treefb07ab4811c58f133edc6bcc7171f71945496d20 /src/parse.cff
parent12e1b45da9b79247f4655332c298c08a2ad5c9b4 (diff)
slice and stuff
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);
}