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

Issue a warning if ambiguous overloads are created using choice types #1336

Open
brynrhodes opened this issue Mar 5, 2024 · 1 comment
Open
Labels
cql The issue relates to or requires a change or clarification on the CQL specification enhancement

Comments

@brynrhodes
Copy link
Member

Allowing the following:

define function Foo(t Integer)
define function Foo(t Choice<Integer, Decimal>)

Results in a potentially ambiguous overload selection and should be discouraged. Add a warning to the translator when this case is detected (i.e. a function with a choice signature is overloaded in a way that one signature completely includes another)

@brynrhodes
Copy link
Member Author

There is a JIRA tracker to the specification to discourage this in the spec and consider deprecating the capability: https://jira.hl7.org/browse/FHIR-44879

@brynrhodes brynrhodes added enhancement cql The issue relates to or requires a change or clarification on the CQL specification labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cql The issue relates to or requires a change or clarification on the CQL specification enhancement
Projects
None yet
Development

No branches or pull requests

1 participant