0 votes

This is largely a nitpick, but since I stick to typed GDScript it has been bugging me. A line of code such as this:
is marked as type-safe, as it should be. But breaking it with \ character:
marks the second line as not type-safe. Is there a reason for it? Or is it a bug?

One can reproduce this behavior by breaking any line, even a very simple one.

var foo := 10 + 10


var foo := 10 \
    + 10

Both result with the same, correct result, but the latter is incorrectly marked and does not provide editor hints.

Godot version 3.3
in Engine by (15 points)
edited by

Please properly copy and paste your code into your post so that other users can copy it and verify your claim.

Thank you, I have edited the question.

1 Answer

+1 vote
Best answer

This is indeed a bug/oversight, even if only a cosmetic one.

If it does not seem to have already been reported there, you can file it at https://github.com/godotengine/godot/issues.

by (2,442 points)
selected by

This was already reported here, and will be fixed in Godot 4.0 thanks to the GDScript rewrite.

Thank you both kindly.

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 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 webmaster@godotengine.org with your username.