This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

Example:

var aname

func aname():
     pass

Result:

Function declaration of 'aname()' conflicts with a variable of the same name.
in Engine by (70 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 (12,908 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 Frequently asked questions and 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 [email protected] with your username.