Hi everyone!
I have a strange behavior which i consider should not be happening, but any insight is welcome.
Basically i have some interfaces:
interface A, B, C. (Inherits from B and C)
interface B (with some methods)
interface C (with some methods)
at some point in code i ask a class implementing interface A :
if ( class is B)
but it is returning false
n
nanodeath
02/15/2021, 7:56 PM
gonna need to see some sample code for this one, ideally a http://sscce.org/
n
Néstor Díazgranados
02/15/2021, 7:58 PM
Yes, i was trying to write in the playground, but what a surprise.. it is returning true.
So i’m guessing there is a mistake not related to this
n
nanodeath
02/15/2021, 7:59 PM
I'd double-check that the premise is actually true and that you're running/compiling what you think you are