struct O
{
public static implicit operator T?(O s) { return new T(); }
}
public class Y
{
public void M()
{
O? o1 = null;
T? t6 = o1;
}
}
It is well compiled but not corresponds C# spec.
See highlighinng test Nullable09.cs
Description
struct T {}
struct O
{
public static implicit operator T?(O s) { return new T(); }
}
public class Y
{
public void M()
{
O? o1 = null;
T? t6 = o1;
}
}
It is well compiled but not corresponds C# spec.
See highlighinng test Nullable09.cs