Problems with property definition using OTB and omitting [] Topic is solved

Discuss the future of the AutoHotkey language
Helgef
Posts: 3297
Joined: 17 Jul 2016, 01:02
Contact:

Problems with property definition using OTB and omitting []

11 Feb 2018, 04:23

Issue example,

Code: Select all

class a {
	b{
	}
}
causes

Code: Select all

Error at line 2.

Line Text: b{ }
Error: Not a valid method, class or property definition.

The program will exit.
This works,

Code: Select all

class a {
	b
	{
	}
}
class c {
	d[]{
	}
}
:arrow: 2.0-a088-338ed55
Cheers.
lexikos
Posts: 6207
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Problems with property definition using OTB and omitting []  Topic is solved

12 Feb 2018, 04:14

It'll be fixed.

FYI, the bug only applies to property names shorter than three characters.

Edit: Fixed by v2.0-a089.
Helgef
Posts: 3297
Joined: 17 Jul 2016, 01:02
Contact:

Re: Problems with property definition using OTB and omitting []

12 Feb 2018, 04:25

lexikos wrote:It'll be fixed.
:thumbup:
lexikos wrote:FYI, the bug only applies to property names shorter than three characters.
Indeed, whitespace included it seems. This works,

Code: Select all

class a{
	b  {
	}
}
Cheers.

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 8 guests