Skip to content

Conversation

@yuxiaomao
Copy link
Contributor

See test for repro.

hl-check gives Check failure at fun@3750 @D - Register 1(hl.types.ArrayObj) should be hl.types.ArrayDyn and not hl.types.ArrayObj on compilation, and the program access violation on runtime when accessing .length.

This ArrayObj tries to access ArrayDyn seems to come from inline and abstract(Array), where haxe compiler generate the following dump

[Field:Int]
	[Local shape(0):IPolygon:IPolygon]
	[FInstance:Int]
		Array<Any>
		length:Int

@Simn Simn merged commit 9a649b6 into HaxeFoundation:development Oct 30, 2025
91 of 93 checks passed
@yuxiaomao yuxiaomao deleted the dev-hl-fix-inline-length-on-abstract-arr branch October 30, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants