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
If two classes cyclically refer to each other, then in some cases it works and in others it doesn't. I've found that sometimes it's enough to simply rename the classes to cause an error (the alphabetical order of the scripts must change for the error to occur).
Steps to reproduce
See MRP. Class A is copied to D, class B to C. A and B works, but C and D does not (Error: Could not parse global class "C" from "res://c.gd").
Calinou
changed the title
Alphabetical order of class/file names affects GDScript compiler behavior
GDScript 2.0: Alphabetical order of class/file names affects GDScript compiler behavior
Jul 25, 2022
Godot version
v4.0.alpha12.official [2c11e6d]
System information
Kubuntu 22.04
Issue description
If two classes cyclically refer to each other, then in some cases it works and in others it doesn't. I've found that sometimes it's enough to simply rename the classes to cause an error (the alphabetical order of the scripts must change for the error to occur).
Steps to reproduce
See MRP. Class
A
is copied toD
, classB
toC
.A
andB
works, butC
andD
does not (Error: Could not parse global class "C" from "res://c.gd").Minimal reproduction project
gd4-gds-cyclic-bug-1.zip
The text was updated successfully, but these errors were encountered: