Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.7
-
None
-
Mac OSX 10.6
-
Patch Available
Description
— Doc.thrift
struct Document {
1: string user_name
2: string document_name
}
typedef Document page_id
— Ranking.thrift
include "Doc.thrift"
struct Request {
1: Doc.page_id page
}
—
thrift -gen ocaml Doc.thrift
thrift -gen ocaml Ranking.thrift
—
You will see
#set_page (read_document iprot)
generated in read_request, instead of the proper
#set_page (Doc_types.read_document iprot)
Generated code fails to compile as a result.