Closed
Description
Bug Report
π Search Terms
expando functions computed properties
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ
β― Playground Link
Playground link with relevant code
π» Code
const c = "C"
export function decl () {}
// decl.foo = ""
decl["B"] = 0
decl[c] = 0
π Actual behavior
Properties "B" and "C" are not present in the generated declarations unless decl.foo
is uncommented.
π Expected behavior
Properties "B" and "C" should be present in the generated declaration regardless of the presence of foo
.