escalier-lang / escalier-next

Improved type safety with tight TypeScript interop
https://escalier-lang.github.io/escalier-next/
MIT License
14 stars 0 forks source link

Handle computed keys when the key is defined in the same file #345

Open kevinbarabash opened 3 months ago

kevinbarabash commented 3 months ago

The following code fails:

let sym = Symbol();
type Point = {x: number, y: number, [sym]: string};

with the following error:

Error (TypeError (SemanticError "Env.GetValue - Undefined symbol sym"))

This is likely an issue in BuildGraph.fs