Home

Intellisense error for static create and implicit conversion

Let's say this code:

void Main()
{
    var a1 = B.Create("Life");
    A a2 = B.Create("Life");
}

class A
{
}

class B
{
    public static B Create(string val) => new B();
    public static implicit operator A(B b) => new A();
}

If we type the ( in a1 line, intellisense is good:

If we type the ( in a2 line, intellisense is bad:

This bug happens both in latest LINQPad 6 and LINQPad 5

Comments

Sign In or Register to comment.