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 type testing result #1337

Open
brynrhodes opened this issue Mar 5, 2024 · 0 comments
Open

Unexpected type testing result #1337

brynrhodes opened this issue Mar 5, 2024 · 0 comments
Assignees
Labels
input needed The issue needs more input from the submitter or another participant question

Comments

@brynrhodes
Copy link
Member

The expression

5 is Choice<Integer, String>

This returns true in both the Java and JS engines, but it seems like it ought to be false, since 5 is Integer, and based on the spec definitions there is no exact match or subtype relationship between the types. Investigate why this is returning 5.

See the thread here for more discussion and to report the results of this investigation: https://chat.fhir.org/#narrow/stream/179220-cql/topic/Type.20Testing.20with.20Choice/near/424791833

@brynrhodes brynrhodes self-assigned this Mar 5, 2024
@brynrhodes brynrhodes added question input needed The issue needs more input from the submitter or another participant labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input needed The issue needs more input from the submitter or another participant question
Projects
None yet
Development

No branches or pull requests

1 participant