Modify

Opened 14 years ago

Closed 14 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 by trancexx, 14 years ago

Milestone: 3.3.9.5
Owner: set to trancexx
Resolution: Fixed
Status: newclosed

Fixed by revision [7083] in version: 3.3.9.5

Modify Ticket

Action
as closed The owner will remain trancexx.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.