Open TonyValenti opened 1 year ago
I think the compiler behavior is by-design (see https://github.com/dotnet/roslyn/issues/53713#issuecomment-849731257), there is a suggestion for a better error message in https://github.com/dotnet/roslyn/issues/46458
The IDE completion behavior is probably a bug (similar to (but different from) https://github.com/dotnet/roslyn/issues/53012), I think.
Version Used: VS 17.2.6
Steps to Reproduce:
public class Foo1 : Foo {
}
public class Foo1 : Foo {
}
public class Foo1 : Foo { protected override T? Serialization_Remove(string Value) where T : default { // Note the new where clause here
return base.Serialization_Remove(Value);
}
}