pylint #52022 warning not triggered when it should [resolved]

a = 42
def foo():
    return 42
a == foo()

I'd expect pylint to also warn in this case:

W:  5: Statement seems to have no effect
prioritynormal
typeenhancement
done in0.23.0
load0.300
load left0.000
closed by<not specified>