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

Arithmetic-assignment operators incorrectly set the type of the variable #40686

Closed
aaronfranke opened this issue Jul 25, 2020 · 0 comments · Fixed by #40690
Closed

Arithmetic-assignment operators incorrectly set the type of the variable #40686

aaronfranke opened this issue Jul 25, 2020 · 0 comments · Fixed by #40690

Comments

@aaronfranke
Copy link
Member

aaronfranke commented Jul 25, 2020

Godot version: master after the GDScript "2.0" rewrite

OS/device including version: Ubuntu 20.04

Issue description:

	var test := Vector3()
	test *= 3 # Parse Error: Cannot assign a value of type "int" to a target of type "Vector3".

The above works in Godot 3.x, but is broken in the current master branch. However, the below works in the master branch:

	var test := Vector3()
	test = test * 3

Steps to reproduce: Copy the above code, and use the current master branch.

Minimal reproduction project: I'm going to not bother with one, this is a very simple bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants