Skip to content

Text.Append evaluates sign signatures in some cases #166

@nonkit

Description

@nonkit

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

No one assigned

    Labels

    type/runtimeIssues related to runtime engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions