bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Structs with fields "o1" or "o2" fail to compile

Open GWRon opened this issue 11 months ago • 1 comments

Struct STest
	Field o1:object
	Field o2:object
End Struct

leads to:

Compile Error: Unable to find overload for defaultcomparator_compare(STest Var,Object). Argument #2 is "Object" but declaration is "STest Var".

Make it a type and it compiles, it also compiles if you rename the fields to "o3" and "o4".

GWRon avatar Jan 19 '25 21:01 GWRon

Most simple way to fix it is probably making o1 and o2 reserved words you are not allowed to use.

GWRon avatar Jan 20 '25 06:01 GWRon