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

Key: RSRP-6212
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Lomov
Reporter: Valentin Kipiatkov
Votes: 0
Watchers: 0
Operations

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

Confusing resolve behavior for overriding method

Created: 05 Aug 06 02:41   Updated: 09 Sep 06 13:26
Component/s: PSI - Resolve
Fix Version/s: None
Security Level: Everybody (All jira users)

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

Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=6212


 Description  « Hide

internal interface I
{
}

internal class Class2
{
public virtual void Foo(I i)
{
}
}

class Class3 : Class2
{
private void Bar()

Unknown macro: { Foo(new object()); }

public override void Foo(I i)
{
}
}

Call to Foo is marked as error with confusing error message: "Ambigous resolve, candidates Foo(I) and Foo(I)". Ctrl-B suggests to choose between Class2.Foo() and Class3.Foo(). Apparently there is no ambiguity - Class3.Foo() should be dominated. Resolve is confused by mismatched parameter type actually. So the error message should be about parameter type, not about ambiguity.



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