[ 
https://issues.apache.org/jira/browse/THRIFT-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295936#comment-14295936
 ] 

Jack L commented on THRIFT-2189:
--------------------------------

Thank you for taking the time to look at this bug report.  Proof of the bug is 
the following text, repasted from my first comment:

{quote}
For example, when I generate code with your test struct I get this:

{code}
type Test struct {
  Strong string `thrift:"strong,1"`
  Integer int32 `thrift:"integer,2"`
  Truethy bool `thrift:"truethy,3"`
}
{code}

There's nothing in this struct that tells go which of the union types was set, 
so it couldn't possibly be a valid union.
{quote}

> Go does not support "union" type
> --------------------------------
>
>                 Key: THRIFT-2189
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2189
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>            Reporter: Jack L
>            Assignee: Jens Geyer
>             Fix For: 1.0
>
>
> Go thrift compiler does not support union types



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to