Hi everyone! I have a strange behavior which i con...
# announcements
n
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
gonna need to see some sample code for this one, ideally a http://sscce.org/
n
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
I'd double-check that the premise is actually true and that you're running/compiling what you think you are
👍 1
r
A good first place to start is check your imports. It could simply be the
B
that
A
extends is not the same
B
that you have imported and are checking against.
n
Thank you @Ruckus, that was the problem!
👍 2