History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-30782
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Eugene Pasynkov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Bad quick-fix for iterator

Created: 31 Oct 06 11:50   Updated: 10 Mar 07 22:06
Component/s: Quick Fixes
Fix Version/s: 3.0, 2.5.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 300
Fixed in build: 400


 Description  « Hide
using System.Collections.Generic;

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

It is impossible to cast null to int.



 All   Comments   Work Log   Change History      Sort Order:
Andrey Simanovsky - 15 Dec 06 18:03
expr.GetExpressionType().IsExplicitlyConvertibleTo(type, CSharpLanguageService.CSHARP)

Returns true in CastFixBase.cs:105