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

returning Variant from functions doesn't work #163

Closed
the-ssd opened this issue Mar 9, 2023 · 2 comments
Closed

returning Variant from functions doesn't work #163

the-ssd opened this issue Mar 9, 2023 · 2 comments
Labels
status: duplicate This issue or pull request already exists

Comments

@the-ssd
Copy link

the-ssd commented Mar 9, 2023

#[func]
pub fn ret_var(&self) -> Variant{
    return 0.to_variant();
}

when running Godot says that ret_var returns void

@the-ssd the-ssd changed the title returning Variant from function does't work returning Variant from functions doesn't work Mar 9, 2023
@Bromeon Bromeon added bug c: register Register classes, functions and other symbols to GDScript labels Mar 9, 2023
@Bromeon
Copy link
Member

Bromeon commented Mar 9, 2023

Please check the issue tracker, this has been already reported: #159

@Bromeon Bromeon added status: duplicate This issue or pull request already exists and removed bug c: register Register classes, functions and other symbols to GDScript labels Mar 9, 2023
@Bromeon Bromeon closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2023
@the-ssd
Copy link
Author

the-ssd commented Mar 9, 2023

sorry, I checked but i guess I am blind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants