GDScript: preload
ing a custom resource type has a return type of GDScript
#70121
Labels
Milestone
preload
ing a custom resource type has a return type of GDScript
#70121
Godot version
v4.0.beta.custom_build [47ef054]
System information
Fedora 36
Issue description
Calling
preload
to load a resource of a custom resource type has a return type ofGDScript
instead of the custom resource type, causing an error if used with static typing.Removing the static typing or switching to
load
can be used as a workaround.Seems to be a regression from #69471, reverting it fixes the error.
Steps to reproduce
Minimal reproduction project
resource_preload.zip
The text was updated successfully, but these errors were encountered: