Bug
Parser rejects arr[i](args) — calling a function retrieved via array indexing.
const fns: Array<(x: string) => void> = [...];
fns[0]("hello"); // ← parse error: Unsupported call expression: ElementAccessExpression
Error: Unsupported call expression: ElementAccessExpression.
Impact
Together with the function-array codegen issue, blocks idiomatic dispatch-table and event-emitter patterns. Hit during lib/net.ts implementation (PR #585).
Likely fix location
src/parser/ or wherever the TS AST visitor handles CallExpression — needs to accept ElementAccessExpression as a callee alongside Identifier and PropertyAccessExpression.
Bug
Parser rejects
arr[i](args)— calling a function retrieved via array indexing.Error:
Unsupported call expression: ElementAccessExpression.Impact
Together with the function-array codegen issue, blocks idiomatic dispatch-table and event-emitter patterns. Hit during
lib/net.tsimplementation (PR #585).Likely fix location
src/parser/or wherever the TS AST visitor handlesCallExpression— needs to acceptElementAccessExpressionas a callee alongsideIdentifierandPropertyAccessExpression.