[
https://issues.apache.org/jira/browse/THRIFT-3971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
koerriva updated THRIFT-3971:
-----------------------------
Description:
*IDL*:
bq. enum ColorA {Red=0,Green=1}
enum ColorB {Red=0,Green=1}
*HS*:
bq. {data ColorA = Red | Green
data ColorB = Red | Green}
*ERROR*:
bq. Multiple declarations of ‘Red’
Multiple declarations of ‘Green’
was:
*IDL*:
bq. enum ColorA {Red=0,Green=1}
enum ColorB {Red=0,Green=1}
*HS*:
bq. data ColorA = Red | Green
data ColorB = Red | Green
*ERROR*:
bq. Multiple declarations of ‘Red’
Multiple declarations of ‘Green’
> multiple declarations constructor
> ---------------------------------
>
> Key: THRIFT-3971
> URL: https://issues.apache.org/jira/browse/THRIFT-3971
> Project: Thrift
> Issue Type: Bug
> Components: Haskell - Compiler
> Affects Versions: 0.9.3
> Environment: GHC-8.0.1,Cabal-1.24.1,thrift-0.9.3
> Reporter: koerriva
> Priority: Critical
> Labels: build
> Fix For: 0.10.0
>
> Original Estimate: 360h
> Remaining Estimate: 360h
>
> *IDL*:
> bq. enum ColorA {Red=0,Green=1}
> enum ColorB {Red=0,Green=1}
> *HS*:
> bq. {data ColorA = Red | Green
> data ColorB = Red | Green}
> *ERROR*:
> bq. Multiple declarations of ‘Red’
> Multiple declarations of ‘Green’
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)