Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Incorrect Change Signature for overloaded methods

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
enigma Posted - Jun 06 2007 : 9:25:50 PM
In vs.net 2003, type in these two methods:
public void MethodA(double aa, double bb)
{

}

public void MethodA(double aa)
{

}


place your cursor at the second method and choose "change signature", you will find that the intellisense suggests this:

public void MethodA(double aa, double bb)

But really, it should suggest MethodA(double aa)

I'm using build 1557
4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Mar 30 2009 : 09:18:51 AM
case=11717 is fixed in build 1721
feline Posted - Jan 22 2008 : 7:42:24 PM
A very sensible suggestion, I have put in a case for this:

case=11717
pvercello Posted - Jan 22 2008 : 4:39:14 PM

An unfortunate side effect of this is that if you use the feature, it can end up changing signature of the wrong version of the method, which can cause subtle bugs that aren't always caught by the compiler, depending on the properties of the types. It'd be nice if it could at least disable the feature when it detects overloaded methods in a class, even if it can't distinguish them.

-pv

feline Posted - Jun 07 2007 : 11:27:38 AM
Currently this is a known limitation:

case=2164

The same problem shows up with alt-g when jumping to an overloaded function. Currently VA does not understand which overload you are calling. Default parameters complicate this, so we cannot even rely on something as simple as counting the parameters to help work this out.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000