Skip to content

Commit c7e551c

Browse files
authored
fix erroring module symbol in export except (#1179)
fixes #1177 Don't generate an error when semchecking the module symbol part of `export except`, would have broken resem too.
1 parent f724096 commit c7e551c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nimony/semimport.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ proc semExportExcept(c: var SemContext; it: var Item) =
299299

300300
let moduleSymStart = c.dest.len
301301
var m = Item(n: x, typ: c.types.autoType)
302-
semExpr c, m # get module sym
302+
semExpr c, m, {AllowModuleSym} # get module sym
303303
x = m.n
304304
let moduleSym = findModuleSymbol(cursorAt(c.dest, moduleSymStart))
305305
endRead(c.dest)

0 commit comments

Comments
 (0)