Modify ↓
Opened on Jul 31, 2017 at 12:24:30 PM
Closed on Mar 29, 2018 at 6:46:45 AM
Last modified on Jul 15, 2018 at 10:06:33 PM
#3560 closed Bug (Fixed)
parentheses around function refference fails when follwed by calling parentheses, triggers error: Statement cannot be just an expression.
| Reported by: | genius257 | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | 3.3.15.1 | Component: | Au3Check |
| Version: | 3.3.14.0 | Severity: | None |
| Keywords: | Cc: |
Description
Example:
Func ABC() MsgBox(0, "", "test") EndFunc $test = Test ($test)()
This is a problem when using objects:
Func ABC()
MsgBox(0, "", "test")
EndFunc
$Object = ObjCreate("Scripting.Dictionary")
$Object.Add('ABC', ABC)
($Object.Item('ABC'))()
Attachments (0)
Change History (4)
comment:1 by , on Jul 31, 2017 at 9:09:17 PM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , on Mar 27, 2018 at 5:59:56 AM
I think that I found a solution please use the au3check.exe of the SciTE beta download
Thanks
comment:3 by , on Mar 29, 2018 at 6:46:45 AM
| Milestone: | → 3.3.15.1 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | assigned → closed |
Fixed by revision [12096] in version: 3.3.15.1
comment:4 by , on Jul 15, 2018 at 10:06:33 PM
Hi Jos :)
I've tried the au3check.exe from the autoit-v3.3.15.1.zip of the beta download, and i still seem to get the same problem.
Sorry for the slow response, i have tried adding my mail my preferences in hope that i will get a notification when there's responses in a ticket i participate in :)
AutoIt3 Syntax Checker v3.3.15.1 Copyright (c) 2007-2013 Tylo & AutoIt Team
error: Statement cannot be just an expression.
($Object.Item('ABC'))(
~~~~~~~~~~~~~~~~~~~~~^
error: syntax error
($Object.Item('ABC'))()
~~~~~~~~~~~~~~~~~~~~~~^
error: Statement cannot be just an expression.
($Object.Item('ABC'))()
~~~~~~~~~~~~~~~~~~~~~~^
Note:
See TracTickets
for help on using tickets.

I made some changes to au3check already for this new stuff in v3.3.15.3, but it isn't able to coupe with the extra set op parentheses around the variable. Need to check this.
Jos