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

GDScript 2.0: Specifing a typed array as return type of function results in error when type inside an array is a custom class #59879

Closed
Trogloid opened this issue Apr 4, 2022 · 2 comments

Comments

@Trogloid
Copy link

Trogloid commented Apr 4, 2022

Godot version

4.0.dev

System information

Windows 10

Issue description

Specifing a typed array as return type of function throws an error when type inside an array is a custom class.
(works fine with built-ins)

typedArray

Steps to reproduce

extends Resource
class_name TextureData

func get_textures() -> Array[TextureData]:
    pass;

Minimal reproduction project

No response

@Calinou Calinou added this to the 4.0 milestone Apr 4, 2022
@Calinou Calinou changed the title Typed array return type GDScript 2.0: Specifing a typed array as return type of function results in error when type inside an array is a custom class Apr 4, 2022
@cridenour
Copy link
Contributor

I can confirm as of alpha14 (and possibly earlier) this has been fixed. Like closed as #63325 and can be closed.

@kleonc
Copy link
Member

kleonc commented Oct 20, 2022

As pointed out by @cridenour it's already fixed by #63325 (seems like it's a duplicate of #59485 in the first place).

@kleonc kleonc closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants