Project
ReSharper
Priority
Critical
Type
Bug
Fix versions
6.1
State
Fixed
Assignee
Sergey Shkredov
Subsystem
Intellisense
Affected versions
No Affected versions
Fixed in build
6.1.0.8191  
  • Created by   Valentin Kipiatkov
    2 years ago (24 Jun 2009 19:04)
  • Updated by   Sergey Shkredov
    7 months ago (11 Oct 2011 19:30)
  • Jira: RSRP-112405
    (history, comments)
 
RSRP-112405 Code completion replaces type arguments when it should not
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
class Class<T>
{
  public B(int p)
  {
  }
}

class C
{
  void Foo()
  {
    new Cl<string>();
  }
}


Invoke completion after "new Cl" and choose "Class<T>". Press Tab. It removes existing type arguments (although it did not highlight them with pink highlighting!). It should not replace existing type arguments when the type has type arguments.

Another case is when constructor of "Class<T>" has no parameters. In this case pink highlighting and the behaviour are consistent but I believe it should not replace type arguments in this case too.
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments