
    No. 18,008.
    Harold Dillinger, et al. v. The North Sterling Irrigation District.
    (308 P. [2d] 608)
    Decided March 18, 1957.
    Mr. Charles S. Vigil, for plaintiffs in error.
    Messrs. Kreager & Sublett, Mr. Graydon F. Dowis, Jr., for defendant in error.
    
      In Department.
    
   Mr. Justice Knauss

delivered the opinion of the Court.

Plaintiffs in error seek reversal of a judgment of dismissal in an action brought by them against defendant in error to recover from the latter the reasonable value of the use and occupancy of certain lands which the complaint alleged were owned by plaintiff and which defendant occupied.

Defendant filed a motion to dismiss the complaint “for the reason that same fails to state a claim upon which relief can be granted.” This motion was sustained and from the judgment of dismissal plaintiff brings the case here on writ of error.

The sole question presented is whether the complaint states a claim upon which relief could be granted. Clearly it does.

In passing on a motion to dismiss a complaint for failure to state a claim, the court must consider only those matters stated within the four corners thereof. Where a plaintiff in his complaint states a case entitling him to some relief, a motion to dismiss the action should not be granted. Stapp v. Carb-Ice Corp., 122 Colo. 526, 224 P. (2d) 935. In the instant case the trial court went beyond the allegations of the complaint and took into consideration the record and pleadings in two independent actions theretofore pending in the trial court and later decided in this court, viz: Dillinger v. North Sterling Irrigation District, 129 Colo. 17, 266 P. (2d) 776, and Dillinger v. North Sterling Irrigation District, No. 17,981, decided this day.

It is fundamental that pleas in bar must be specially pleaded. As we read the complaint it states a claim and the trial court erred in dismissing the action.

The judgment is reversed and the cause remanded with direction that it be vacated and further proceedings had in accordance with the Rules of Civil Procedure.

Mr. Chief Justice Moore, Mr. Justice Sutton and Mr. Justice Day concur.  