g. unabetida created THRIFT-4875:
------------------------------------
Summary: Thrift compiler generates invalid Haskell code
Key: THRIFT-4875
URL: https://issues.apache.org/jira/browse/THRIFT-4875
Project: Thrift
Issue Type: Bug
Affects Versions: 0.12.0
Reporter: g. unabetida
With the following .thrift file:
{code:java}
struct Dummy {
1: string dummy;
}
const Dummy emptyDummy = { }{code}
the Thrift compiler generates Haskell code with an empty record update:
{code:java}
emptyDummy :: Dummy
emptyDummy = default_Dummy{}{code}
This doesn't compile. I think removing {} fixes the problem?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)