#3669 closed Bug

Error message "Struct" — at Version 1

Reported by: mLipok Owned by:
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.

Change History (1)

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

Description: modified (diff)
Version: 3.3.14.03.3.15.0
Note: See TracTickets for help on using tickets.