AL icon indicating copy to clipboard operation
AL copied to clipboard

Adding integers and Dates

Open MrDavid5465 opened this issue 9 years ago • 2 comments

It appears that I cannot add a date and an integer together unless the date comes first in the calculation.

License.S365_PetLicenseDate : Date; LicenseTerm.TermInDays : Integer;

image

image

This is a bug I think.

MrDavid5465 avatar Jul 26 '17 12:07 MrDavid5465

This should be consistent with the behavior in C/SIDE. When we implemented this, our goal was to keep the old behavior until we got a better understanding of the subtleties of the language and the runtime. We will consider removing this restriction.

atoader avatar Jul 26 '17 12:07 atoader

This has been fixed.

nndobrev avatar Nov 29 '23 10:11 nndobrev