You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
The error 'Parser bug (please report): Trying to check compatibility of unset value type' is printed when passing an i variable of a loop into the float function.
In the reproduction project, the i variable kind is still unresolved when analyzing the call.
The i variable type should in fact be guessed from the for i in rang(0,1): expression but it is currently not yet the case.
In GDScriptAnalyzer::resolve_for, there is even a TODO comment about this:
// TODO: If list is a typed array, the variable should be an element.
// Also applicable for constant range() (so variable is int or float).
Godot version:
45d3b96
OS/device including version:
Windows 10
Issue description:
The error 'Parser bug (please report): Trying to check compatibility of unset value type' is printed when passing an i variable of a loop into the float function.
Steps to reproduce:
Launch attached project
Minimal reproduction project:
type_compatibility.zip
The text was updated successfully, but these errors were encountered: