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
 VA 2420: out declared var not recognized
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2318 Posts

Posted - May 05 2022 :  11:23:05 AM  Show Profile  Reply with Quote
For whatever reason, the
DetailedScenariosUpperBound
var is not recognized by VA here, although at the declaration (out int ...) its ok.
Note that the navigation AND definition bar is empty although the caret is on the variable. In the line above and below the Nav bar shows the current method name.



feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - May 06 2022 :  07:08:50 AM  Show Profile  Reply with Quote
That is a bit odd, so thank you for the screen shot showing the code. It turns out that the trigger is declaring a new variable at the start of the line. If you declare "bool parse" a line above, you can still assign the result to "parse" without any problems, but having the declaration at the start of the line is the cause of the "out int" variable not being picked up as a variable declaration by VA:

case=147955

zen is the art of being at one with the two'ness
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