Boo

Conflict when an explicitely implemented method has a sibling overload with incompatible signature

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.8.2, 0.9
  • Fix Version/s: 0.9
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

cedric@laptop:~/dev/workspace/boo/boo$ cat tests/testcases/regression/BOO-1031-1.boo
import System.Collections
import System.Collections.Generic

class B:
        pass

class A(B*):
        def IEnumerable.GetEnumerator() as IEnumerator:
                pass
        def GetEnumerator() as IEnumerator[of B]:
                pass

cedric@laptop:~/dev/workspace/boo/boo$ booc tests/testcases/regression/BOO-1031-1.boo
Boo Compiler version 0.8.2.2963 (CLR v2.0.50727.42)
tests/testcases/regression/BOO-1031-1.boo(10,9): BCE0035: 'A.GetEnumerator' conflicts with inherited member 'System.Collections.IEnumerable.GetEnumerator'.
1 error(s).

(bug reported by Greg Bagel)

Issue Links

Activity

Hide
Cedric Vivier added a comment -

rev. 2976 : added (ignored for now) testcases in test/testcases/regression/BOO-1031-*.boo

Show
Cedric Vivier added a comment - rev. 2976 : added (ignored for now) testcases in test/testcases/regression/BOO-1031-*.boo
Hide
Avishay Lavie added a comment -

Fixed in r2999.

Show
Avishay Lavie added a comment - Fixed in r2999.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: