We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code example:
using Lambda; class Test { static function main() {} } class TYPE { public function new() {} public function iterator():Iterator<Int> return new IntIterator(0, 1); } abstract ABSTRACT(TYPE) { public var array(get, never):Bool; function get_array() return true; public function new() { this = new TYPE(); $type(array); $type(this.array); } }
Output:
Test.hx:15: characters 14-19 : Warning : Void -> Array<Int> Test.hx:16: characters 14-24 : Warning : Void -> Array<Int>
It is the Lambda.array(it:Iterable):Array function. As a result, the abstract can't access its own variable in its definition.
I'd have to downgrade to confirm this but I think I started getting these bugs of getters not working with the 3.4 version.
The text was updated successfully, but these errors were encountered:
456bfb9
Please note that this.array still resolves to Lamda.array because this resolves to TYPE, not ABSTRACT.
this.array
Lamda.array
this
TYPE
ABSTRACT
Sorry, something went wrong.
Fixed static extension of this compiler errors for Haxe 4 (per HaxeFo…
39c67d0
…undation/haxe#6036)
fix compilation when ecx_debug is enabled
e23b54a
(see HaxeFoundation/haxe#6036)
No branches or pull requests
Code example:
Output:
It is the Lambda.array(it:Iterable):Array function.
As a result, the abstract can't access its own variable in its definition.
I'd have to downgrade to confirm this but I think I started getting these bugs of getters not working with the 3.4 version.
The text was updated successfully, but these errors were encountered: