Skip to content

Conversation

@jdonaldson
Copy link
Member

Fixes #11842. The OpAssign patterns in genlua.ml were wrapping all field assignments between anonymous/closure types with _hx_funcToField, regardless of whether the field was actually a function type.

Added is_function_type checks to the three patterns that were missing them, matching the existing pattern for TLocal assignments.

Fixes HaxeFoundation#11842. The OpAssign patterns in genlua.ml were wrapping all
field assignments between anonymous/closure types with _hx_funcToField,
regardless of whether the field was actually a function type.

Added is_function_type checks to the three patterns that were missing
them, matching the existing pattern for TLocal assignments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@jdonaldson jdonaldson closed this Jan 5, 2026
@jdonaldson jdonaldson deleted the fix-issue-11842 branch January 5, 2026 01:21
@jdonaldson jdonaldson restored the fix-issue-11842 branch January 5, 2026 01:21
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.

Redundant call _hx_funcToField for lua target

1 participant