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

Godot 4.1.3: The variable type is being inferred from a Variant value #6

Closed
lleblanc42 opened this issue Nov 10, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@lleblanc42
Copy link

Godot version

v4.1.3.stable

Issue description

Recieved a parse error in the console upon importing the plugin into Godot 4.1.3 that reads, "The variable type is being inferred from a Variant value, so it will be typed as Variant". This happens on line 252 in wiggle_bone.gd. Basically Godot doesn't know how to type cast it. To fix, simply apply the type.

var h := max(0.0, k - abs(a - b))

to

var h: float = max(0.0, k - abs(a - b))

Steps to reproduce

Import the plugin into 4.1.3.

@detomon detomon added the bug Something isn't working label Nov 10, 2023
@detomon
Copy link
Owner

detomon commented Nov 10, 2023

Strangely, I couldn't reproduce this error in any Godot version. Though, I once got it too on another occasion. I'll push a new version which should prevent this in any case. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants