+1 vote

Example:

var aname

func aname():
     pass

Result:

Function declaration of 'aname()' conflicts with a variable of the same name.
in Engine by (66 points)
edited by

1 Answer

+2 votes
Best answer

As of Godot 3.1, using variables with the same name as functions is deprecated. This is because support for first-class functions (lambdas) is expected to land in a future Godot version. Once first-class functions are implemented, this warning will become an error.

by (9,692 points)
selected by

Thanks - very useful link. So warning in 3.1, error in 3.2+.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.