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

Erlang records should use map() for map type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • Erlang - Compiler
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: