Project
ReSharper
Priority
Show-stopper
Type
Bug
Fix versions
2.5.1, 3.0
State
Fixed
Assignee
Evgeny Pasynkov
Subsystem
Quick Fixes
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Vladimir Reshetnikov
    5 years ago (31 Oct 2006 12:50)
  • Updated by   Vladimir Reshetnikov
    4 years ago (10 Mar 2007 23:06)
  • Jira: RSRP-30782
    (history, comments)
 
RSRP-30782 Bad quick-fix for iterator
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
using System.Collections.Generic;

class Stuff
{
    static IEnumerable<int> Foo()
    {
        yield return null; // here
    }
}


It is impossible to cast null to int.

Issue was closed
Comments (1)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Andrey Simanovsky
  Andrey Simanovsky
15 Dec 2006 19:03
5 years ago
expr.GetExpressionType().IsExplicitlyConvertibleTo(type, CSharpLanguageService.CSHARP)

Returns true in CastFixBase.cs:105