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

Incorrect overload resolution #233

Closed
VladD2 opened this issue Jan 6, 2012 · 0 comments
Closed

Incorrect overload resolution #233

VladD2 opened this issue Jan 6, 2012 · 0 comments

Comments

@VladD2
Copy link
Member

VladD2 commented Jan 6, 2012

using System.Console;

public class A
{
  public static @!=(a : A, b : A) : bool
  {
    WriteLine("OK");
    a : object == b
  }

  public static @:(a : object) : A
  {
    a :> A
  }

  static Main() : void
  {
    def x = A();

    _ = x != null; // E: 
  }
}
@VladD2 VladD2 closed this as completed in 859b3a9 Jan 6, 2012
VladD2 added a commit that referenced this issue Jan 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant