Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UnaryExpression transpile for ns and const #914

Merged
merged 1 commit into from
Sep 23, 2023

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
4 checks passed
@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.

None yet

2 participants