Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA 2420: out declared var not recognized

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
Uniwares Posted - May 05 2022 : 11:23:05 AM
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.



1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 06 2022 : 07:08:50 AM
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

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