Opened 6 years ago

Last modified 6 years ago

#3669 closed Bug

Error message "Struct" — at Initial Version

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

Description

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:\TOOLs\Macro\FORUM\___FORUM -- z forum\UIA_V0_67\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 (0)

Note: See TracTickets for help on using tickets.