Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 0.7.5
-
Fix Version/s: 0.8.1
-
Component/s: None
-
Labels:None
-
Environment:.NET 2.0 RTM
-
Number of attachments :
Description
namespace Alpha
class Foo:
....pass
interface INeeded:
....pass
namespace Bravo:
import Alpha
class Foo:
....pass
class Bar(Foo, INeeded):
....pass
Error: Type 'Foo' is invalid. <--- NOTICE that it does not say 'Ambiguous reference'.
The fix is to specify the Full name of the type: Bravo.Foo, but when you got Boo.Lang.Useful.Pipelines.Documentation.Ast.Node, it's horrible.
BOO should look and resolve types in the current namespace before it looks in other namespaces.
The test above doesn't cut it:
// File: Alpha.boo
namespace Alpha
class Foo:
pass
interface INeeded:
pass
// File: BravoAlternate.boo
namespace Bravo:
class Foo:
pass
// File: Bravo.boo
namespace Bravo
import Alpha
class Bar(Foo, INeeded):
pass