Skip to content

Fix UnaryExpression transpile for ns and const#914

Merged
TwitchBronBron merged 1 commit intomasterfrom
fix-unary-transpile
Sep 23, 2023
Merged

Fix UnaryExpression transpile for ns and const#914
TwitchBronBron merged 1 commit intomasterfrom
fix-unary-transpile

Conversation

@TwitchBronBron
Copy link
Member

Fix a bug transpiling UnaryExpression when referencing namespaces and consts.

Source:

const foo = 1
sub main()
    bar = -foo
end sub

transpiles to: BEFORE

sub main()
    bar = -foo 'oops, that should be 1
end sub

transpiles to: AFTER

sub main()
    bar = - 1
end sub

@TwitchBronBron TwitchBronBron merged commit db6cf8e into master Sep 23, 2023
@TwitchBronBron TwitchBronBron deleted the fix-unary-transpile branch September 23, 2023 11:49
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.

2 participants