Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Refactor to source does not recognize inner types
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Sep 17 2008 :  02:51:05 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Sep 17 2008 :  6:45:41 PM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 02 2016 :  7:58:29 PM  Show Profile  Reply with Quote
case=1247 is fixed in build 2089.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000