-
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
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.
- links to