Closed Oxdeception closed 2 weeks ago
Additional notes regarding hl:
| Haxe version | Analyzer off | Analyzer on |
| ------------ | ------------------------------------------------ | ------------------------------------------------ |
| 4.3.4 | ok | segfault (`IntComponent.doSomething`) |
| 4.3.3 | segfault (`$ArrayComponent_Int.__constructor__`) | segfault (`$ArrayComponent_Int.__constructor__`) |
Eval:
[0] Instance constructor not found: _Test.AComponent_Impl_
Caused by https://github.com/HaxeFoundation/haxe/commit/b00bca0e767169e8ad6cffff6e951d7af7721e16
Other error on hl is unrelated (edit: hmm, maybe not really unrelated), will need to investigate
@Simn do you have any idea what could be done here without breaking #11526? :/
Likely somewhere in handle_abstract_casts
, but I'll have to take a closer look to provide more useful information.
Online example
Minimal Example:
Under 4.3.4 this causes a Not_found error when generating C++, CPPIA, and JVM. Neko, SWF, Python, HashLink, and JavaScript will compile and hit runtime errors.
The example will work correctly with when using 4.3.3, with the exception of HashLink
Ensuring that the AComponent is assigned to a variable before using it apparently resolves the issue Online example