Skip to content
This repository was archived by the owner on Aug 2, 2019. It is now read-only.
This repository was archived by the owner on Aug 2, 2019. It is now read-only.

Overload resolution ambiguous for implicit cast #7

@pvginkel

Description

@pvginkel

There is a failing unit test which pertains to overload resolution. The following case fails to find the correct overload:

void Method(float a) { }
void Method(double a) { }

Method(1)

The problem here is that integer can be implicitly casted to both float and double, and the overload resolution mechanism currently doesn't score overloads which are matched through implicit casts. C# b.t.w. calls the method with the float argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions