Issue #2

delay <call> crashed inside a generic proc

Symptom

Using delay <call> inside a generic proc aborted the compile with [Bug] expected ')'.

Root cause

semDelay wasn’t idempotent. A generic body is flattened once at definition, then re-sem’d on each instantiation — the second pass saw an already-lowered delay it couldn’t re-parse.

The fix

Make semDelay re-entrant so a second pass over an already-flattened delay is a no-op instead of a parse error.

Files touched: nimony/sem.nim

Verification

Covered by cps suite.


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.