Modify ↓
#82 closed Bug (No Bug)
Variable declared on same line = Undeclared
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.10.0 | Severity: | |
| Keywords: | Cc: |
Description
If you try this code:
$str = "Hello" & $str MsgBox(0, "Test", $str)
you will get an error "$str possibly used before declaration"
I understand this would produce an infinite loop, but the variable is technically declared, is it not?
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
| Resolution: | → nobug |
|---|---|
| Status: | new → closed |
comment:2 by , 18 years ago
I thought it as a bug, and in no way a support question.
I thought the bug was that a declared variable was being marked as undeclared.
Note:
See TracTickets
for help on using tickets.

This is a question. The issue tracker is not the place for asking questions. This is clearly not a bug. The variable is in the process of being declared so of course you can't use it in the declaration because it doesn't exist yet.
Mark as no bug. In the future, please refrain from asking support questions (which belong on the forum) on the issue tracker.