Issue #1

.passive helpers didn’t resolve across modules

Symptom

A .passive coroutine helper (await, sleepAsync, …) defined in one module and used from another failed to link: could not find symbol: …init.<caller>.

Root cause

The helper was name-mangled with the caller’s module suffix, and the generated wrapper was never published into the defining module’s index — so the importer looked for a symbol that lived under the wrong module.

The fix

Derive coroSuffix from the module that defines the helper, and publish the foreign wrapper into that module’s index so cross-module lookups resolve.

Files touched: hexer/coro_transform.nim, hexer/cps.nim

Verification

Covered by tsleep3, tgather2.


Back to top

aoughwl — next-gen self-hosted platform for things n stuff. Reach out on Discord (timbuktu_guy) for access to the private backends.

This site uses Just the Docs, a documentation theme for Jekyll.