[MonoDevelop] BooBinding build errors in SVN?

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Feb 13 00:59:06 EST 2009


On Fri, Feb 13, 2009 at 12:37 AM, John Dong <jdong at ubuntu.com> wrote:
> Well that makes me feel a bit better for not being an idiot setting up
> something wrong and not being a further idiot by staring at that error
> blankly trying to match U's and T's :)
>
> FWIW this is with Boo 0.9's compiler. Are the Boo folks aware of this?

Not sure. I only noticed a day or so ago after Lluis (who has 0.7.9)
updated the boo binding to track core API, and we haven't yet had time
to investigate.

Now I look more closely at the message, it's not the same as the one I
was getting with 0.8.2. However, it's still nonsense. The offending
lines are.
for lib as ProjectReference in projectItems.GetAll[of ProjectReference] ():
and
for finfo as ProjectFile in projectItems.GetAll[of ProjectFile] ()

and it appears be be confused by the constraints on the generic types.
projectItems is a ProjectItemCollection. Relevant parts of the API
are:

public class ProjectItemCollection: ProjectItemCollection<ProjectItem> {}
public class ProjectItemCollection<T>: ItemCollection<T>,
IItemListHandler where T: ProjectItem
{
    public IEnumerable<U> GetAll<U> () where U:T {}
}

So it appears to have not propagated the type of T into the
constraints of GetAll<U>.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list