David Hull created THRIFT-4497:
----------------------------------
Summary: Erlang records should use map() for map type
Key: THRIFT-4497
URL: https://issues.apache.org/jira/browse/THRIFT-4497
Project: Thrift
Issue Type: Bug
Components: Erlang - Compiler
Affects Versions: 0.11.0
Reporter: David Hull
Assignee: David Hull
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|http://erlang.org/doc/reference_manual/typespec.html#id79546]
says:
{quote}
Notice that the syntactic representation of {{map()}} is {{#\{any() =>
any()\}}} (or {{#\{_ => _\}}}), not #\{ \}. The notation #\{ \} specifies the
singleton type for the empty map.
{quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)