… because Google gave me no results when this curiosity came to me.
Testing method:
I generated a .gd script using Ruby’s Array#permutation and Array#product.
Then I let Godot 4.1.0’s code editor (statically?) check for errors. I have not run any of the GDScript.
- First – Between
Variantand anything (i.e. dynamic typing support) - Between
int,floatandbool(Betweenfloatandbool? Interesting.) - Between
StringandStringName(as expected) - Between
StringandNodePath(ditto) - Between
Rect2andRect2i; same for theVectors - Between
Arrayand anyPackedXXXArray(not even the element type matters…) - Between
Transform2D(2×3 matrix) andTransform3D(3×4 matrix) - Between
Transform3D(3×4 matrix) andProjection(4×4) - Between
Transform3D(3×4),Basis(3×3) andQuaternion(1×4) - From
intorStringtoColorbut notColorto one of those (Implicitly convert from a color name? Pog.) - From
ObjecttoRIDbut notRIDtoObject