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
The error is caused by the second step in precompile, at the first line of the openContext function. When passing the AST through the parsedModules optional argument in openContext, the openContext function drops the sources computed in the first step of precompile (which contain the stdlib declarations):
This causes missing reference errors in resolveDescriptors later.
It seems to me that instead of dropping sources, the function openContext should take the union of sources plus the optional argument parsedModules. Like this:
The error is caused by the second step in
precompile
, at the first line of theopenContext
function. When passing the AST through theparsedModules
optional argument inopenContext
, theopenContext
function drops thesources
computed in the first step ofprecompile
(which contain thestdlib
declarations):This causes missing reference errors in
resolveDescriptors
later.It seems to me that instead of dropping
sources
, the functionopenContext
should take the union ofsources
plus the optional argumentparsedModules
. Like this:The text was updated successfully, but these errors were encountered: