#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 )
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 , on Oct 14, 2018 at 11:17:25 PM
| Description: | modified (diff) |
|---|---|
| Version: | 3.3.14.0 → 3.3.15.0 |
follow-up: 4 comment:3 by , 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.
comment:4 by , 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 , on Oct 16, 2018 at 12:44:58 PM
| Milestone: | → 3.3.15.1 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [12180] in version: 3.3.15.1

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