Skip to content

[ENHANCEMENT] Improvements to Static Field Importing - #527

Merged
AbnormalPoof merged 2 commits into
FunkinCrew:developfrom
nykwono:clean-static-fields
Oct 5, 2026
Merged

AbnormalPoof merged 2 commits into
FunkinCrew:developfrom
nykwono:clean-static-fields

Conversation

@nykwono

@nykwono nykwono commented Oct 5, 2026 •

Copy link
Copy Markdown

This PR includes some improvements to the recently added addition to static field imports:

  • Cleanups a bit to how wildcard importing works.
  • Cleans up error messages relating to statc fields to be more consistent to other error messages.
  • Makes sure that blacklisted scripted static fields can't be imported.
  • Implements the @:noImportGlobal metadata that makes it so static fields can not be imported through wildcards.
  • Makes it so that imported static fields that already exists are not skipped and instead overwrite the previous imported static field (this is regular Haxe behavior)
  • Allows being able to import static fields from abstract classes.
  • Allows being able to use "in" as well for import aliases.

@AbnormalPoof
AbnormalPoof merged commit 385c85f into FunkinCrew:develop Oct 5, 2026
9 checks passed
@nykwono
nykwono deleted the clean-static-fields branch October 5, 2026 05:41
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