Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactor to source does not recognize inner types

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
andre.horst Posted - Sep 17 2008 : 02:51:05 AM
VAX 1649, VS2008, WinXP SP2.

Try following code:

class CFoo
{
public:
	struct s
	{
		int a ;
		int b ;
	} ;

	void test() ;
}


void CFoo::test()
{
	s* ps ;
	ps = NULL ;  // <-- Refactor this line to source
}

Now select the line with the pointer to the struct setting to NULL. Select "Extract Method" and use the option "Extract to Source".

The inner class type "s" has no class-prefix in the refactored method, thus the compiler cant recognize the type.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 02 2016 : 7:58:29 PM
case=1247 is fixed in build 2089.
feline Posted - Sep 17 2008 : 6:45:41 PM
I am seeing the same effect here. Thank you for the clear description.

case=1247

This is actually a problem with the Move Implementation to Source File part of the operation, not that knowing this really this helps

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