Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3971

multiple declarations constructor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.9.3
    • Fix Version/s: None
    • Component/s: Haskell - Compiler
    • Labels:
    • Environment:

      GHC-8.0.1,Cabal-1.24.1,thrift-0.9.3

    • Flags:
      Important

      Description

      IDL:

      enum ColorA {Red=0,Green=1}
      enum ColorB {Red=0,Green=1}

      HS:

      data ColorA = Red | Green

      data ColorB = Red | Green

      Tip

      the two datatype in one module file and the error appear when compiling

      ERROR:

      Multiple declarations of ‘Red’

      Multiple declarations of ‘Green’

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              koerriva koerriva
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 360h
                360h
                Remaining:
                Remaining Estimate - 360h
                360h
                Logged:
                Time Spent - Not Specified
                Not Specified