Priority
Major
Type
Bug 
State
Fixed 
Assignee
Alexander Zverev 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
5.0.1612.107  
Fixed in build
916
  • Submitted by   Serge Baltic
    21 months ago (25 Apr 2008 18:07)
  • Updated by Serge Baltic
    18 months ago (01 Aug 2008 16:30)
  • Jira: RSRP-66368
    (history, comments)

RSRP-66368

CA::MethodGroupToAnonimous: Missing Void Method Parentheses

0
void Do(Action act){}
void Do(Action<bool> act){}
void Run(){}
void Test()
{
	Do(Run);
}


On {{Run}} argument in {{Do}} call, exec "To Anonimous Method" CA.

Get:

void Do(Action act){}
void Do(Action<bool> act){}
void Run(){}
void Test()
{
	Do(delegate { });
}


Should be:

void Do(Action act){}
void Do(Action<bool> act){}
void Run(){}
void Test()
{
	Do(delegate (){ });
}


PS When Inline Method refac supports inlining into method groups, use the refac for running the CA (?).

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