[Gambas-user] Bug

Benoît Minisini g4mba5 at gmail.com
Thu Aug 23 11:16:48 CEST 2018


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


More information about the User mailing list