Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.11.0
-
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
- links to