Details
Description
cedric@laptop:~/dev/workspace/boo/boo$ cat ifoo.boo interface IFoo: def Foo() interface IFoo2: def Foo() class Bar3(IFoo,IFoo2): def IFoo.Foo(): print "IFoo.Foo" def Foo(): print "Foo" z as IFoo = Bar3() z.Foo() #works aa = Bar3() aa.Foo() cedric@laptop:~/dev/workspace/boo/boo$ booc ifoo.boo Boo Compiler version 0.8.2.2963 (CLR v2.0.50727.42) ifoo.boo(16,7): BCE0004: Ambiguous reference 'Foo': Bar3.Foo(), Bar3.Foo(). 1 error(s).
Strangely, this works with booish (??!) :
cedric@laptop:~/dev/workspace/boo/boo$ booi ifoo.boo ifoo.boo(16,7): BCE0004: Boo.Lang.Compiler.CompilerError: Ambiguous reference 'Foo': Bar3.Foo(), Bar3.Foo(). cedric@laptop:~/dev/workspace/boo/boo$ booish ifoo.boo Welcome to booish, an interpreter for the boo programming language. Running boo 0.8.2.2963 in CLR v2.0.50727.42. Enter boo code in the prompt below (or type /help). Evaluating 'ifoo.boo' ... IFoo.Foo Foo >>>
Issue Links
| This issue is depended upon by: | ||||
| BOO-1031 | Conflict when an explicitely implemented method has a sibling overload with incompatible signature |
|
|
|
Fixed in revision 3000.
).
Sorry for snatching this from you, Cedric (I'll give you one of mine in return if you like