[Gambas-user] Bug

Jussi Lahtinen jussi.lahtinen at gmail.com
Thu Aug 23 17:09:21 CEST 2018


Phuuh... yes, my mistake. I didn't remember the unknown method.


Jussi

On Thu, Aug 23, 2018 at 12:17 PM Benoît Minisini <g4mba5 at gmail.com> wrote:

> Le 23/08/2018 à 03:22, Jussi Lahtinen a écrit :
> > The sub is called with TestClass2 even when TestClass1 is asked. Also
> > this way there is no error message at all!
> >
> > Private Sub Crash(o1 As TestClass1)
> >
> >   Dim ii As Integer = o1.x
> >   Dim jj As Integer = o1.y()
> >
> > End
> >
> > Jussi
> >
>
> Of course: as you define an _unknown method in TestClass2, this method
> is returned when accessing an unknown symbol (hence the error when you
> don't call it).
>
> I will try to see if I can make the error more explicit by detecting
> that special case.
>
> --
> Benoît Minisini
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180823/97b84669/attachment.html>


More information about the User mailing list