Priority
Show-stopper
Type
Bug 
State
Fixed 
Assignee
Ilya Ryzhenkov 
Subsystem
Search 
Affected versions
Fixed in
Fixed in build
Next build 
Fixed in build
463
  • Submitted by   Eugene Pasynkov
    2 years ago (15 Jun 2007 17:14)
  • Updated by Eugene Pasynkov
    2 years ago (02 Jul 2007 16:53)
  • Jira: RSRP-43386
    (history, comments)

RSRP-43386

"Highlight usages" doesn't find references

0
Highlight usages of IMyControl.ID highlights something strange

public class Control
{
  public string ID { get {return ""; } }
}

public interface IMyControl
{
  string ID { get; }
}

public class MyControl1 : Control, IMyControl
{
}

public sealed class MyControl2 : IMyControl
{
  public string ID { get { return ""; } }
}

public sealed class MyControl3 : Control
{
}

public class MyClass
{
  Control myControl1 = new MyControl1();
  MyControl2 myControl2 = new MyControl2();
  MyControl3 myControl3 = new MyControl3();

  public MyClass()
  {
    string id;
    id = myControl1.ID;
    id = myControl2.ID;
    id = myControl3.ID; // This reference shouldn't be found!
  }
}


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments