summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse/gram.y b/parse/gram.y
index c8789f7..2f6bf3f 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -297,7 +297,10 @@ pkgitem : decl {
for (i = 0; i < $1->nfuncs; i++)
putdcl(file->file.exports, $1->funcs[i]);
}
- | implstmt
+ | implstmt {
+ $1->impl.vis = Visexport;
+ lappend(&exportimpls, &nexportimpls, $1);
+ }
| visdef {die("Unimplemented visdef");}
| /* empty */
;