Skip to content

Remove the implicit string cast operator for Point #12067

Closed

Description

@MartinZikmund

Current behavior

Point _lastPosition = new Point();
global::System.Diagnostics.Debug.WriteLine("New position " + _lastPosition);

Throws System.FormatException: Input string was not in a correct format., because the code is trying to convert "New position" to a Point instance.

Expected behavior

Should not happen.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    on Apr 25, 2023
  2. self-assigned this
    on Apr 25, 2023
  3. Youssef1313 commented on Apr 25, 2023

    @Youssef1313
    Member

    @jeromelaban Ok in master or should be in breaking changes?

  4. jeromelaban commented on Apr 25, 2023

    @jeromelaban
    Member

    @Youssef1313 it should be in breaking changes, as it may impact source generation (somehow).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/tbdkind/bugtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions