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

multiple declarations constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.9.3
    • None
    • Haskell - Compiler
    • GHC-8.0.1,Cabal-1.24.1,thrift-0.9.3

    • 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

            Unassigned Unassigned
            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