inheritance error

View: New views
4 Messages — Rating Filter:   Alert me  

inheritance error

by George-94 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


class xList[of T](List[of T]):
        pass

d = xList[of int]()

d.Add(1) //error: Internal compiler error: Object reference not set to
an instance of an object.. (BCE0055) - C:\MyProjects\boo_test
\Program.boo:22,3

What's wrong? I thought Boo can do it..


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: inheritance error

by Rodrigo B. de Oliveira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Fri, Oct 30, 2009 at 5:52 PM, George <g.dernovoy@...> wrote:

>
> class xList[of T](List[of T]):
>        pass
>
> d = xList[of int]()
>
> d.Add(1) //error: Internal compiler error: Object reference not set to
> an instance of an object.. (BCE0055) - C:\MyProjects\boo_test
> \Program.boo:22,3
>
> What's wrong? I thought Boo can do it..
>

Hm... Apparently not, please file a bug report.

Rodrigo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: inheritance error

by Vlad Smaglyuk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

in boo 0.9.2.3383 your code is correct. 

On Sat, Oct 31, 2009 at 2:52 AM, George <g.dernovoy@...> wrote:

class xList[of T](List[of T]):
       pass

d = xList[of int]()

d.Add(1) //error: Internal compiler error: Object reference not set to
an instance of an object.. (BCE0055) - C:\MyProjects\boo_test
\Program.boo:22,3

What's wrong? I thought Boo can do it..






--
see later

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: inheritance error

by George-94 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I use boo 0.9.2.3383 shipped in latest Sharpdevelop and got the error.
Rodrigo got it too :)

On 1 ноя, 08:49, Vlad Smaglyuk <vlad.smagl...@...> wrote:

> in boo 0.9.2.3383 your code is correct.
>
>
>
>
>
> On Sat, Oct 31, 2009 at 2:52 AM, George <g.derno...@...> wrote:
>
> > class xList[of T](List[of T]):
> >        pass
>
> > d = xList[of int]()
>
> > d.Add(1) //error: Internal compiler error: Object reference not set to
> > an instance of an object.. (BCE0055) - C:\MyProjects\boo_test
> > \Program.boo:22,3
>
> > What's wrong? I thought Boo can do it..
>
> --
> see later
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang?hl=en
-~----------~----~----~----~------~----~------~--~---