Page 1 of 1

what am i doing wrong here?

PostPosted: Tue Dec 17, 2013 3:21 am
by kobi7
for the following code,

Code: Select all
use System.Collections

class ManageGarden
   var bestFifty as SortedList<of Garden>
   
   cue init
      base.init


I get the error
Code: Select all
ManageGarden.cobra(0,0): Error: Cannot find type for "SortedList<of Garden>".


why?
both classes are in the same namespace.

Re: what am i doing wrong here?

PostPosted: Tue Dec 17, 2013 5:48 am
by Charles
SortedList is not generic. None of the classes in System.Collections are.

Re: what am i doing wrong here?

PostPosted: Fri Dec 27, 2013 12:22 am
by kobi7
oops, you're right. I couldn't see past my nose, that day. (thinking I was perfect :-/ )

Re: what am i doing wrong here?

PostPosted: Fri Dec 27, 2013 1:18 pm
by Charles
That's okay. Looks like we could use a better error message. Want to fill out a ticket?