… 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
Variant
and anything (i.e. dynamic typing support) - Between
int
,float
andbool
(Betweenfloat
andbool
? Interesting.) - Between
String
andStringName
(as expected) - Between
String
andNodePath
(ditto) - Between
Rect2
andRect2i
; same for theVector
s - Between
Array
and 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
int
orString
toColor
but notColor
to one of those (Implicitly convert from a color name? Pog.) - From
Object
toRID
but notRID
toObject