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

Incorrect type display of function arguments in GDScript editor tooltips #63017

Closed
Xwdit opened this issue Jul 15, 2022 · 0 comments · Fixed by #63015
Closed

Incorrect type display of function arguments in GDScript editor tooltips #63017

Xwdit opened this issue Jul 15, 2022 · 0 comments · Fixed by #63015

Comments

@Xwdit
Copy link
Contributor

Xwdit commented Jul 15, 2022

Godot version

4.0.alpha12

System information

Windows11, Nvidia RTX 2060, Vulkan

Issue description

For function arguments without a defined type but with a default value set, the arguments type will be displayed as the type of the default value in the editor tooltip (should be Variant)
image

Steps to reproduce

Just look at the tooltip when calling the fn function:

func _ready():
	fn()


func fn(x = [1, 2, 3], y:int = 1):
	return

Minimal reproduction project

func _ready():
	fn()


func fn(x = [1, 2, 3], y:int = 1):
	return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants