Skip to content
New issue

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

Fix a few issues with @export in GDScript #47131

Merged
merged 4 commits into from
Mar 30, 2021

Conversation

vnen
Copy link
Member

@vnen vnen commented Mar 18, 2021

Main change is to delay the application of annotations until after the types are processed, so a regular @export annotation can infer the type even in more complex expressions for the initializer.

This also added previously missing support for enums and typed arrays (thus still dependent on #46830, as it was built on top of that branch).

I took the opportunity to fix some bugs as well.

Fix #42023
Fix #41072
Fix #42301
Fix #42022
Fix #42894

@vnen vnen added this to the 4.0 milestone Mar 18, 2021
vnen added 4 commits March 30, 2021 08:29
This ensures that annotations that rely on the datatype (such as
@export) can validated it timely, allowing compound expressions instead
of only literal values.
Also fix the enum type in variables to be integer.
@vnen vnen force-pushed the gdscript-export-fix branch from 1f574f8 to 2b9be53 Compare March 30, 2021 11:58
@vnen vnen marked this pull request as ready for review March 30, 2021 11:59
@vnen vnen requested a review from a team as a code owner March 30, 2021 11:59
@vnen
Copy link
Member Author

vnen commented Mar 30, 2021

Rebased now that typed arrays are merged.

@akien-mga akien-mga merged commit 737f098 into godotengine:master Mar 30, 2021
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment