Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-44879

Clarify that choice types should not be used to create potentially ambiguous overloads

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium

    Description

      Although the following function declarations are technically allowed:

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

      Doing so results in a potentially ambiguous overload and should be discouraged. Add language to discourage this and consider deprecating this capability.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bryn.rhodes Bryn Rhodes
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: