Plaintiff commenced proceedings in mandamus against defendant McKenzie, treasurer of the city of Fresno, to compel the payment of certain warrants issued for work performed upon the sewers of the city in the month of May, 1895. The claims represented by the warrants had been duly allowed and ordered paid by the board of trustees, and warrants therefor had been properly drawn upon the treasurer.
It was alleged that there was in the sewer fund of the city, and not otherwise appropriated, a sum largely in excess of the amount of the warrants.
Defendant McKenzie, in his return and answer, showed that the city of Fresno had entered into a contract with Alexander McBean, whereby McBean agreed to take care and dispose of the sewage of the city for a period of five years for the sum of four thousand nine hundred dollars per annum, payable quarterly. This contract had been performed by McBean, and the city had from year to year assessed and levied a tax for the sewer fund sufficient to pay McBean’s demands, and for the purpose of paying the same, and had in fact devoted the money to these payments until the year 1893. In that year, though McBean had fulfilled the terms of his contv ,ct, and though there was in the sewer fund sufficient unappropriated moneys wherewith to pay his claims, the city refused payment, asserting that the contract was void, and that it was no longer bound by it* McBean then instituted suit against the city, which action was pending and undetermined. Defendant further alleged that the moneys which were in the sewer fund, and which were claimed to be available for the payment of plaintiff’s claims, were moneys thus collected and set over to the sewer fund for the payment of the claims of McBean for the year 1893, and were sufficient only for that purpose; that by reason of the pending litigation between McBean and the city, to which he had been made a party defendant, he could not, and should not be compelled to, pay plaintiff’s claims out of the revenues of the year 1893 until the claim of McBean *146upon the revenues of that year had been finally adjudicated.
McBean was allowed to intervene and set up the same facts asking payment to himself of the moneys in the sewer fund. Plaintiff interposed general demurrers to the answer and complaint in intervention. They were sustained, and defendant and intervener appealed. The demurrer to defendant’s answer was improperly sustained.
The moneys in the sewer fund for the fiscal year 1893 could be used for no other purpose than the payment of the legitimate claims of that year, until they had' one and all been met and extinguished. Thereafter, any excess over could be carried into the sewer fund of the following year, or transferred from the sewer fund to the general fund, and from the latter expended or appropriated to meet deficiencies in other funds. But, until all just demands upon the sewer fund for the year 1893 had been met and paid, the integrity of the fund could not be impaired. The fact that the moneys remained in the treasury in 1895 did not make them a part of the fund of 1895. They were still a part of the fund of 1893. As the revenues of a given year, and those only, may be devoted to the payment of claims arising in that year, it would be the height of injustice to suffer a rightful claimant to be robbed of his due by a technical transfer of the moneys of a fund of the year in which the demand accrued, into the fund of a later year, before adjustment and settlement of all demands.
Whether McBean’s claim was valid or not, it was sufficient for the treasurer and the municipal authorities to know and to show, as they did, that it had previously been recognized as valid, and was being pressed in the courts in good faith. Under these circumstances, the moneys in the sewer fund for the fiscal year 1893, to the amount of McBean’s claim, were not available to pay claims arising in 1895, and the treasurer’s showing was a sufficient defense to the action.
The demurrer to McBean’s complaint in intervention *147was properly sustained. It amounted to nothing more than an attempt to retry issues determined adversely to him in his action against the city and the treasurer to compel payment under his contract. That action is now pending before this court upon appeal, and presents propositions entirely independent of those brought up in this appeal. They are reserved for a separate consideration.
The judgment against defendant McKenzie is reversed, with directions to the trial court to overrule the demurrer to his answer. The judgment against the intervenor, McBean, is affirmed.
McFarland, J., and Garoutte, J., concurred.