Ontosy

Au3Check bug

4 posts in this topic

I have script a.au3:

if IsDeclared("vv")==0 Then
    Global Const $vv = "any"
Endif

script b.au3:

#include "a.au3"
$vv="any2"

Au3Check.exe b.au3 report:

error: $vv previously declared as a 'Const'.

 But IMHO it is not an error because the declaration is under condition.

Share this post


Link to post
Share on other sites



Au3check in not aware of If logic and simply detects 2 scripts doing a global declaration of $w, hence the reported error/warning.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

IMHO Au3check should know of if logic hence not report error/warning.

The script work fine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now