X Tutup
Skip to content

Resolve exported identifiers in for-in loops#829

Merged
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
hazzard993:for-in-exported-identifiers
Feb 24, 2020
Merged

Resolve exported identifiers in for-in loops#829
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
hazzard993:for-in-exported-identifiers

Conversation

@hazzard993
Copy link
Contributor

Closes #781

Not entirely sure what

let foo = '';
export { foo as bar };
for (foo in { x: true }) {}

is meant to change bar to.

TypeScript doesn't change bar specifically in for-in loops.

@Perryvw Perryvw merged commit f98a33e into TypeScriptToLua:master Feb 24, 2020
export let foo = '';
for (foo in { x: true }) {}
`
.setReturnExport("x")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it supposed to check foo?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 770d5ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

for...in loop doesn't resolve exported identifiers

3 participants

X Tutup