Modify

Opened 6 years ago

Closed 6 years ago

#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 Changed 6 years ago by mLipok

  • Description modified (diff)
  • Version changed from 3.3.14.0 to 3.3.15.0

comment:2 Changed 6 years ago by Jos

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

Jos

Version 0, edited 6 years ago by Jos (next)

comment:3 follow-up: Changed 6 years ago by mLipok

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 6 years ago by mLipok (previous) (diff)

comment:4 in reply to: ↑ 3 Changed 6 years ago by Jos

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 Changed 6 years ago by Jos

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

Fixed by revision [12180] in version: 3.3.15.1

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

Action
as closed The owner will remain Jos.
Author


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

 
Note: See TracTickets for help on using tickets.