Earlier in my career, I was less willing to share salary information. But now that my compensation is above average, I always have the "I am paid toward the top of the range in this area, here is what I make now/would be looking for, so that we don't waste our time" conversation very early in the recruiting process and it ends up being a pretty good filter.
They are usually pretty open about saying "yeah, that's more than we can offer, thanks for your time", so if it were one of the few types of jobs I'd be willing to take a paycut for, it seems like there'd be an opportunity to let them know you are open to making less and go from there.
Of course, it is possible they are bluffing, but given how much the market currently favors developers right now, such bluffs would rarely pay off and I'd expect them to be rare. And, it is really no different than if they'd bluffed before you went through the rest of the interview process, is it?
My concern is I hope to be doing this for another 25 years...
Or is this purely theoretical and not seen in practice?