Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected semantic error with List promotion #686

Open
brynrhodes opened this issue Nov 4, 2021 · 0 comments
Open

Unexpected semantic error with List promotion #686

brynrhodes opened this issue Nov 4, 2021 · 0 comments
Labels

Comments

@brynrhodes
Copy link
Member

brynrhodes commented Nov 4, 2021

This library unexpectedly gives: Could not resolve call to operator DateFrom with signature(List)
I suspect this is because it's trying to do list promotion, but it means that that option causes unexpected semantic errors in this case.

library TestIntervalPrecision

define Patient: Tuple {
  birthDateTime: @1974-10-21T10:30:00.0
}

define FirstTwoYears:
  Interval[date from Patient.birthDateTime, "Date of Second Birthday"]

define "Date of Second Birthday":
  date from Patient.birthDateTime + 2 years
@brynrhodes brynrhodes added the bug label Nov 4, 2021
@JPercival JPercival changed the title Unexpected semantic error Unexpected semantic error with List promotion Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant