We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Godot version: 71d372a
Issue description: This fails:
func test(): return true func _ready(): var a: int = test() if a == 1: print("Ok?")
If the function is typed or you use var a: int = true, it will work. I'd expect that a typed variable is properly converted in all cases.
var a: int = true
The text was updated successfully, but these errors were encountered:
I think resolving this might indirectly lessen the effects of #24035.
Sorry, something went wrong.
This is a duplicate of #32905.
The error occurs only when a variable is declared in a certain way:
func test(): return true func _ready(): var a: int = test() var b := test() as int var c := int(test()) prints(a is int, b is int, c is int) # False True True
bojidar-bg
vnen
Successfully merging a pull request may close this issue.
Godot version:
71d372a
Issue description:
This fails:
If the function is typed or you use
var a: int = true
, it will work. I'd expect that a typed variable is properly converted in all cases.The text was updated successfully, but these errors were encountered: