Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4497

Erlang records should use map() for map type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: Erlang - Compiler
    • Labels:
      None

      Description

      When the Thrift Erlang code generator is given the "maps" option, it generates records with #{} as the field type. However #{} is the type for an empty map. The Erlang Types and Function Specifications says:

      Notice that the syntactic representation of map() is #{any() => any()} (or #{_ => _}), not #{ }. The notation #{ } specifies the singleton type for the empty map.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dhull David Hull
                Reporter:
                dhull David Hull
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: