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
{{ message }}
Repository navigation
-shared: an exported const from a module with a top-level statement can't be resolved by the importer #448
Without the top-level print, the pair compiles and runs, but the importer warns 'let' does not have initializer, use undefined union type '<type> | undefined' at the import. That suggests the declaration the importer sees for k is a let with no initializer. With a top-level statement in the module, k seems to be treated as a local of the module's top-level code rather than a global, so it is not exported at all.
Related: #447 (the same module imported as source does not compile at all).
Activity
-mm=own phase 6: spec 20.5 cites #446-#448
-mm=own phase 6: the corpus report; globals' initializers, data nothi…