Boo

Ambiguous reference when subclassing method with ref parameter of an internal type

Details

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

Description

class Bar:
	pass

interface IFoo:
	def Bar(ref x as Bar) as bool

class Foo (IFoo):
	def Bar(ref x as Bar) as bool:
		return true

x as Bar
Foo().Bar(x)   #BCE0004: Ambiguous reference 'Bar': Foo.Bar(Bar), Foo.Bar(Bar), Foo.Bar(Bar).

If parameter 'x' is an external type instead of an internal type, it works.

Activity

Hide
Cedric Vivier added a comment -

Simpler testcase (no need for an abstract class in the middle to trigger the bug)

Show
Cedric Vivier added a comment - Simpler testcase (no need for an abstract class in the middle to trigger the bug)
Hide
Cedric Vivier added a comment -

Fixed in rev. 3115

Show
Cedric Vivier added a comment - Fixed in rev. 3115

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: