Forums

what am i doing wrong here?

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

what am i doing wrong here?

Postby kobi7 » Tue Dec 17, 2013 3:21 am

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.
Falun Dafa is Good.
Truth, Compassion, Forbearance is Good.
kobi7
 
Posts: 82
Location: Israel

Re: what am i doing wrong here?

Postby Charles » Tue Dec 17, 2013 5:48 am

SortedList is not generic. None of the classes in System.Collections are.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: what am i doing wrong here?

Postby kobi7 » Fri Dec 27, 2013 12:22 am

oops, you're right. I couldn't see past my nose, that day. (thinking I was perfect :-/ )
Falun Dafa is Good.
Truth, Compassion, Forbearance is Good.
kobi7
 
Posts: 82
Location: Israel

Re: what am i doing wrong here?

Postby Charles » Fri Dec 27, 2013 1:18 pm

That's okay. Looks like we could use a better error message. Want to fill out a ticket?
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 96 guests

cron