Issue #7

Symptom

A generic race[T] spawned as delay raceW(...) failed to link on both native and JS: loadForeign: “Symbol not found: raceW.0.coro.”.

Root cause

semDelay’s generic-instantiation branch copied the delayed callee verbatim, so a generic callee was never instantiated — its .coro frame type was therefore never emitted, and the linker had nothing to bind.

The fix

Reconstruct the (call …), re-sem it (which instantiates the generic and emits the .coro frame), then re-flatten back to (delay …).

Files touched: nimony/sem.nim

Verification

Covered by tgenrace (native + JS).


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.