Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type
- TFoo = record
- i: UInt64;
- b: Boolean;
- end;
- TFooArray = array of TFoo;
- var
- Foo: TFooArray;
- procedure test(f: TFoo);
- begin
- end;
- begin
- // Operator not compatible
- // Maybe Right.VarType = Left.ArrayType ?
- // Foo += [1, False];
- // Works
- Foo += TFoo([1, False]);
- test([1, False]);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement