thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "g. unabetida (JIRA)" <j...@apache.org>
Subject [jira] [Created] (THRIFT-4875) Thrift compiler generates invalid Haskell code
Date Wed, 29 May 2019 13:43:00 GMT
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)

Mime
View raw message