Modify ↓
      
        Opened 13 years ago
Closed 13 years ago
#2215 closed Bug (Fixed)
Wrong(?) syntax check of default parameter value with array variable
| Reported by: | MrCreatoR <mscreator@…> | Owned by: | trancexx | 
|---|---|---|---|
| Milestone: | 3.3.9.5 | Component: | AutoIt | 
| Version: | 3.3.8.1 | Severity: | None | 
| Keywords: | Cc: | 
Description
Try Syntax Check on this example:
Global $aArr[2] = [1] Func Test($vParam=$aArr[0]) EndFunc
According to syntax check this code is good, but when you run it there is an error:
Badly formatted "Func" statement.: Func Test($vParam=$aArr[0]) Func Test($vParam=$aArr^ ERROR
If we use non array variable as param value, then no errors shown.
I think the syntax is right, so the error should be removed, or just change the syntax check to detect this kind of syntax mistake.
Attachments (0)
Change History (1)
comment:1 Changed 13 years ago by trancexx
- Milestone set to 3.3.9.5
- Owner set to trancexx
- Resolution set to Fixed
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
        TracTickets for help on using
        tickets.
    

Fixed by revision [7083] in version: 3.3.9.5