bcc
bcc copied to clipboard
Structs with fields "o1" or "o2" fail to compile
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".
Most simple way to fix it is probably making o1 and o2 reserved words you are not allowed to use.