Extract Method Fault
Hi!
EM doesnt seem to recognize, if parameters are involved in the code block to be extracted.
private void Foo( string someParam )
{
string result = someParam.Clone() as string;
}
Using EM on the right side of = results in uncompilable Code, since someParam is not recognized as not movable.
private string NewMethod(){
return someParam.Clone() as string;
}
In General it would be cool, if any objects ocurring in the block could be chosen as parameters of the new method.
Thanx, Guido
Please sign in to leave a comment.
Guido,
This is a bug. Please submit it to tracker.
--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Guido Stinnez" <no_mail@jetbrains.com> wrote in message
news:11482709.1087379995136.JavaMail.itn@is.intellij.net...
to be extracted.
someParam is not recognized as not movable.
chosen as parameters of the new method.