Opened 12 years ago

Closed 12 years ago

#2215 closed Bug (Fixed)

Wrong(?) syntax check of default parameter value with array variable

Reported by: MrCreatoR <mscreator@…> Owned by: trancexx
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


Try Syntax Check on this example:

Global $aArr[2] = [1]

Func Test($vParam=$aArr[0])

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 12 years ago by trancexx

  • Milestone set to
  • Owner set to trancexx
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [7083] in version:

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.

Add Comment

Modify Ticket

as closed The owner will remain trancexx.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.