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

Text.Append evaluates sign signatures in some cases #166

Open
nonkit opened this issue Oct 17, 2020 · 0 comments
Open

Text.Append evaluates sign signatures in some cases #166

nonkit opened this issue Oct 17, 2020 · 0 comments
Labels
type/runtime Issues related to runtime engine

Comments

@nonkit
Copy link
Member

nonkit commented Oct 17, 2020

Following sample code shows unexpected results in lines 1, 3, 4, 5 and 7. (Lines 2, 6 and 8 are OK.)

TextWindow.WriteLine(Text.Append("1 + ", 2)) ' "1 + 2" expected
TextWindow.WriteLine(Text.Append(1, " + 2")) ' "1 + 2" expected
TextWindow.WriteLine(Text.Append("1+", 2)) ' "1+2" expected
TextWindow.WriteLine(Text.Append(1, "+2")) ' "1+2" expected
TextWindow.WriteLine(Text.Append("1 - ", 2)) ' "1 - 2" expected
TextWindow.WriteLine(Text.Append(1, " - 2")) ' "1 - 2" expected
TextWindow.WriteLine(Text.Append("1-", 2)) ' "1-2" expected
TextWindow.WriteLine(Text.Append(1, "-2")) ' "1-2" expected

The result:

12
1 + 2
12
12
-12
1 - 2
-12
1-2
Program has ended.
@nonkit nonkit added the type/runtime Issues related to runtime engine label Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/runtime Issues related to runtime engine
Projects
None yet
Development

No branches or pull requests

1 participant