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?