As an infraction that awards the other team possesion of the ball. So if this happens and the referee blows the whistle to call it out or even indicates that this infraction occurred after the fact, then the ball was dead and so the ball falling back in the basket does not count for points.