-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Inferred type export vars are converted incorrectly from Godot 3 to Godot 4. #66006
Labels
Milestone
Comments
This seems to be fixed as of 4.3dev (2d0ee20), tested with 3.5stable and converted script exactly as above, and the output was |
Correct, I actually fixed it some months ago in Godot 4.1. Related PR: #75900 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Godot version
v4.0.beta1.official [20d6672]
System information
Windows 8.1
Issue description
When importing a project into the Godot 4 beta (originally written in v3.5.stable.official [991bb6a]), exported variables with inferred types (using
:=
) are converted incorrectly. Theexport(type)
is correctly changed to@export
, but the variable declaration itself is now incorrect.Steps to reproduce
export(int) var int_export_var := 1
written in it.@export var int_export_var: int := 1
instead of the expected@export var int_export_var := 1
or@export var int_export_var: int = 1
.Minimal reproduction project
VariableIssue.zip
Project was created in Godot 3.5.
The text was updated successfully, but these errors were encountered: