Jump to content

Au3Check not flagging some duplicate variables


AndyS01
 Share

Recommended Posts

I have a very large script and I found one of my global variables was declared twice but I didn't get any errors when compiling the script.  I have a test script here:

#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7

Global $aArray1[7]
Global $aArray1[7] ; I don't get an error on this line!!
Global $aArray1[2] ; I don't get an error on this line!!

global $VAR1
global $VAR2
global $VAR1 ; I get an error on this line
global $VAR2 ; I get an error on this line

I get "already declared/assigned" errors on the duplicate $VAR1 and $VAR2 lines but not on the duplicate $aArray1 lines. 

Is there a way to have the duplicate $aArray1 lines flagged with an error?

 

Link to comment
Share on other sites

  • Developers

My guess is that this isn't flagged for an Array as it is common to "reset" the array by re-declaring it.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

×
×
  • Create New...