[ 
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
bq. data ColorB = Red | Green

{panel:title=Tip|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
the two datatype in one module file and  the error appear when compiling
{panel}

*ERROR*:
bq. Multiple declarations of ‘Red’
bq. 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
bq. data ColorB = Red | Green

*ERROR*:
bq. Multiple declarations of ‘Red’
bq. 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
> bq. data ColorB = Red | Green
> {panel:title=Tip|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
> the two datatype in one module file and  the error appear when compiling
> {panel}
> *ERROR*:
> bq. Multiple declarations of ‘Red’
> bq. Multiple declarations of ‘Green’



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

Reply via email to