Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.16.0
-
None
Description
This small thrift file fails to compile.
enum SomeEnum { A, B, C } typedef map<SomeEnum, i32> SomeMap const SomeMap MY_MAP = { SomeEnum.A: 123, SomeEnum.B: 456, SomeEnum.C: 789 }
Trying to compile this thrift file results in this error:
[FAILURE:generation:1] Error: have identifier "SomeEnum.A", but unset enum on line!
If I didn't use the typedef and instead declared MY_MAP with type map<SomeEnum, i32>, there is no issues with compilation. This issue also happens if SomeEnum is the value type in the map, and it also happens for typedefs of lists of enums.
Attachments
Issue Links
- links to