X Tutup
Skip to content

Fix function with properties assigned to variable declaration#1202

Merged
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
GlassBricks:fix-property-function-declarations
Jan 4, 2022
Merged

Fix function with properties assigned to variable declaration#1202
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
GlassBricks:fix-property-function-declarations

Conversation

@GlassBricks
Copy link
Contributor

Fixes #1196: Only function expressions/arrow functions are wrapped in variable declarations.
Still leaves #1197 open.

Also fixed a bug I found, where a named, not self-recursive function is assigned to a variable wasn't wrapped.

@GlassBricks
Copy link
Contributor Author

Also, this broke my existing code; could we get this in a patch release?

@Perryvw Perryvw merged commit 3225770 into TypeScriptToLua:master Jan 4, 2022
@GlassBricks GlassBricks deleted the fix-property-function-declarations branch March 16, 2022 16:26
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.

Incorrect behavior when a function type with property is assigned to a variable

2 participants

X Tutup