using System.Collections.Generic; class Stuff { static IEnumerable<int> Foo() { yield return null; // here } }
It is impossible to cast null to int.
expr.GetExpressionType().IsExplicitlyConvertibleTo(type, CSharpLanguageService.CSHARP)
Returns true in CastFixBase.cs:105
Returns true in CastFixBase.cs:105