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: return_value_discarded warning not happening #66100

Closed
lonevox opened this issue Sep 19, 2022 · 0 comments · Fixed by #67361
Closed

GDScript 2.0: return_value_discarded warning not happening #66100

lonevox opened this issue Sep 19, 2022 · 0 comments · Fixed by #67361

Comments

@lonevox
Copy link

lonevox commented Sep 19, 2022

Godot version

4.0 beta 1

System information

Windows 10

Issue description

In 4.0 beta 1, functions that have a return value and are ignored when called do not incur a return_value_discarded warning. This is a regression from 3.5 in which a return_value_discarded warning happens.

Steps to reproduce

Call any method that has a return value and ignore the return value.
You will not see any warning.

Minimal reproduction project

ReturnValueDiscardedBug3.5.zip

ReturnValueDiscardedBug4.0.zip

@Calinou Calinou added this to the 4.0 milestone Sep 19, 2022
@Calinou Calinou changed the title return_value_discarded warning not happening GDScript 2.0: return_value_discarded warning not happening Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants