Modify

#3669 closed Bug (Fixed)

Error message "Struct"

Reported by: mLipok Owned by: Jos
Milestone: 3.3.15.1 Component: AutoIt
Version: 3.3.15.0 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

Try to run this code:

Opt("MustDeclareVars", 1)

_Example()
Func _Example()
	Local Static Const $testX01 = 0
EndFunc

DO NOT USE Au3Check just AutoIt.

You will see:

Line 5  (File "Z:\......\test2.au3"):

Local Static Const $testX01 = 0
Local Static ^ ERROR

Error: No variable given for "Dim", "Local", "Global", "Struct" or "Const" statement.

Message should end with this:
Error: No variable given for "Dim", "Local", "Global", "Static" or "Const" keyword.

Attachments (0)

Change History (5)

comment:1 by mLipok, on Oct 14, 2018 at 11:17:25 PM

Description: modified (diff)
Version: 3.3.14.03.3.15.0

comment:2 by Jos, on Oct 15, 2018 at 9:00:18 AM

Don't think so, static is a total separate keyword and doesn't belong in that line at all.
In this case the error is triggered on Const.

Jos

comment:3 by mLipok, on Oct 16, 2018 at 2:18:57 AM

My point was not about which part of code fires this error.
You can fire the same error with this following single line:

Global

The issue which I report here is about "used wording":

Error: No variable given for "Dim", "Local", "Global", "Struct" or "Const" statement.
Error: No variable given for "Dim", "Local", "Global", "Static" or "Const" keyword.

EDIT:
I mean that there should not be mentioned "Struct" and all mentioned mnemonic are keywords.

Last edited on Oct 16, 2018 at 2:20:20 AM by mLipok (previous) (diff)

in reply to:  3 comment:4 by Jos, on Oct 16, 2018 at 12:41:59 PM

Replying to mLipok:

EDIT:
I mean that there should not be mentioned "Struct" and all mentioned mnemonic are keywords.

Ah, that does indeed make sense.

Jos

comment:5 by Jos, on Oct 16, 2018 at 12:44:58 PM

Milestone: 3.3.15.1
Owner: set to Jos
Resolution: Fixed
Status: newclosed

Fixed by revision [12180] in version: 3.3.15.1

Modify Ticket

Action
as closed The owner will remain Jos.

Add Comment


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