[ 
https://issues.apache.org/jira/browse/THRIFT-4497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16388697#comment-16388697
 ] 

ASF GitHub Bot commented on THRIFT-4497:
----------------------------------------

Github user jeking3 commented on the issue:

    https://github.com/apache/thrift/pull/1495
  
    Hi, please rebase this on the current master and force push to kick a new 
build - I think the CI build environment is stable again.


> 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
>            Priority: Major
>
> 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)

Reply via email to