-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
type/runtimeIssues related to runtime engineIssues related to runtime engine
Description
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.
Metadata
Metadata
Assignees
Labels
type/runtimeIssues related to runtime engineIssues related to runtime engine