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
Call resolver (TS/JS): a bare call to a named import resolves to a same-named member of a namespace import (import { clone } vs import * as schemas) #3758
The engine links the bare clone(...) (step import) to clone at v4/classic/schemas.ts:202, a method inside an object literal in the namespace-imported module. The call is to v4/core/util.ts:645clone, which is named in the import. packages/zod/src/v4/mini/in-out.ts has the same shape (it resolves to mini/schemas.ts:90).
The TypeScript checker flags both as wrong in the new Level 2 TypeScript check (tests/tools/call_graph_resolution.py typescript, branch claude/optimistic-heisenberg-bta91d).
Likely direction
A bare call can only reach a binding in scope. A name listed in import { … } is exactly that binding. A namespace import (import * as ns) reaches its members only as ns.clone(...). So for a bare call, the import step should prefer a file whose import statement names the callee. A namespace import's members should count only for a call qualified with that namespace's alias.
Activity
call resolver (ts/js): only a binding is bare-callable; signatures ar…