-
Notifications
You must be signed in to change notification settings - Fork 125
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
Ratio Literal Can't Reference Quantity Expression Values #455
Comments
Hi @bdrillard , the I am surprised you're not getting an error on that though, and I've verified that the latest versions of the CQL 1.3 and 1.4 translators correctly error on that. What version of the translator are you using? |
We're consuming the info.cqframework.cql-to-elm dependency to handle our ELM generation, v1.3.15. Your explanation this only applies to full Ratio & Quantity literals makes sense however. An error message would clear that up (and obviate any concerns that there's an open documentation issue), but our version of the ELM compiler didn't seem to surface ones, either during compilation or in the annotations of the produced AST. |
Hmm.... that's definitely strange because I don't see it with the latest 1.3, but I don't see any fixes between 15 and 17 that would account for the difference. Are you getting any warnings or errors with the translation? |
Is this still an issue? |
It's possible to define a
Ratio
using the:
literal and two Quantities:The definition of the ELM is such that
Ratio
accepts twoQuantity
types.I would think the the following would produce a valid
Ratio
:however, the ELM indicates only one of the element Quantities is returned instead:
Interestingly, the
Denominator
expression is completely ignored.If we use the
Instance
constructor forRatio
directly, we get what we'd expect:Perhaps the
:
literal operator isn't correctly understanding Quantity-typedExpressionRef
instances?The text was updated successfully, but these errors were encountered: