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

Key: RSRP-48806
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Dmitry Lomov
Reporter: Andrew Serebryansky
Votes: 0
Watchers: 0
Operations

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

ReSharper resolves symbol to a class while C# compiler resolves that symbol to property

Created: 07 Sep 07 12:44   Updated: 29 Oct 07 19:45
Component/s: None
Fix Version/s: 3.1
Security Level: Everybody (All jira users)

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

Build: 517


 Description  « Hide
While formatting the following code with 'Shorten qualified references' option turned on:

using System.Collections.Generic;

namespace CreatureComfort.Library
{
public class Visit
{
public static List<Visit> CreateSortedListOfAllVisits()
{ return null; }
}
}

namespace CreatureComfort.WebSite.Visit
{
class EntitySetup
{
public Library.Visit Visit { get { return null; } }

public static Library.Visit FindVisit( )
{ List<Library.Visit> visits = CreatureComfort.Library.Visit.CreateSortedListOfAllVisits(); return visits[0]; }
}
}

ReSharper produces the following code:

using System.Collections.Generic;
using CreatureComfort.Library;

namespace CreatureComfort.Library
{
public class Visit
{
public static List<Visit> CreateSortedListOfAllVisits()
{ return null; } }
}
}

namespace CreatureComfort.WebSite.Visit
{
internal class EntitySetup
{
public Library.Visit Visit
{
get { return null; }
}

public static Library.Visit FindVisit()

{ List<Library.Visit> visits = Visit.CreateSortedListOfAllVisits(); return visits[0]; }

}
}

which is not compilable since 'Visit' is resolved to the property 'Visit' by the compiler, while ReSharper resolves it to the class 'Visit'



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.