[a104] problem with variadic property defined in class body Topic is solved

Report problems with documented functionality
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

[a104] problem with variadic property defined in class body

31 Aug 2019, 03:18

Issue example,

Code: Select all

class a {
	static a[a*] => msgbox(a.length)	; 0, expected 2
}
a.a[1,2]	; Error:  No object to invoke.
These works as expected,

Code: Select all

class a {
	static a[a, aa*] => msgbox(a ':' aa.length)	; 1:1
}
a.a[1,2] ; OK

Code: Select all

a := {}
a.defineprop 'a', {get : (a*) => msgbox(a.length)}
a.a[1,2] ; 3
Cheers.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 24 guests