You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- TODO: does not account for `public import` + `meta import`, which is not the same
87
+
if env.header.modules[modIdx]?.any (!·.isExported) then
88
+
throwError "Invalid public `meta` definition `{.ofConstName origDecl.name}`, \
89
+
`{.ofConstName ref}` is not accessible here; consider adding \
90
+
`public meta import {env.header.moduleNames[modIdx]!}`"
91
+
match getIRPhases env ref, isMeta with
82
92
| .runtime, true =>
83
-
throwError "Invalid `meta` definition `{.ofConstName origDecl.name}`, may not access declaration `{.ofConstName ref}` not marked or imported as `meta`"
93
+
iflet some modIdx := env.getModuleIdxFor? ref then
0 commit comments