The trial court granted summary judgment for plaintiffs in this ejectment action. Defendant appeals. We reverse and remand.
In their petition, plaintiffs allege they are entitled to certain described property, subject to an easement held by defendant. Plaintiffs also allege that defendant has built a microwave repeater tower on their property but off of the easement. Because defendant has improperly located the tower off of the easement, plaintiffs allege defendant has wrongfully dispossessed them and defendant is wrongfully withholding possession of the property from them. These allegations are sufficient to state a cause of action in ejectment. § 524.060 RSMo 1978.
Defendant filed a general denial and an affirmative defense. The affirmative defense appears to be the defense of equitable estoppel. As its affirmative defense, defendant alleges that it purchased the right to maintain the tower on the subject property and this right is “a covenant running with the land.” Defendant then alleges that due to a mutual mistake of defendant and the original grantor of the easement, the description of the easement did not fully cover the area the parties intended to cover. Further, defendant alleges that plaintiff knew or should have known of the actual location of the tower and of the misdescription of the easement at the time plaintiffs purchased the property in issue.
Plaintiffs moved for judgment on the pleadings. The trial court, however, treated the motion as a motion for summary judgment. This is clear from the court’s judgment. In its judgment, the court states that argument had been presented on plaintiffs’ “Motion for Summary Judgment.” More important, the judgment recites that the court was “fully advised on (the) Motion, together with the pleadings, pre-trial discovery, depositions, affidavits and stipulations of the parties, .... ” The failure of the court to exclude matters outside the pleadings from its consideration transformed the motion for judgment on the pleadings to a motion for summary judgment. Rule 55.27(b). 1
The trial court committed procedural error in granting the motion for summary judgment. Under Rule 74.04(c), a motion for summary judgment must be filed at least 10 days before the time fixed for hearing. Also, the adverse party must be allowed time to file affidavits opposed to the motion. Rule 74.04(c). These rules are designed to grant the adverse party the time and opportunity to marshal and then present evidence at the hearing.
Advance Concrete & Asphalt Co. v. Ingels,
We turn to consider whether the court’s judgment can be justified as a judgment on the pleadings for we may affirm the judgment if the trial court reached the right result even for the wrong reasons.
E.g., Edgar v. Fitzpatrick,
In a motion for judgment on the pleadings, the movant’s position “is similar to that of a movant on a motion to dismiss, 1.e., assuming the facts pleaded by the opposite party to be true, the facts are neverthe
less
insufficient as a matter of law.”
Cantor v. Union Mut. Life Ins. Co.,
Here, defendant filed a general denial to plaintiffs’ petition. This would put each fact of plaintiffs’ claim in issue and, thus, a judgment on the pleadings could not have been entered in plaintiffs’ favor.
See Helmkamp v. American Family Mut. Ins. Co., supra
at 565-66. Furthermore, even if we assume that defendant’s affirmative defense supersedes its general denial,
2
plaintiffs would not prevail. Defendant may raise equitable as well as legal defenses to an ejectment action,
e.g., First National Bank of Cape Girardeau v. Socony Mobil Oil Co.,
Judgment reversed and cause remanded.
Notes
. Rule 55.27(b) provides that: on a motion for judgment on the pleadings, matters outside the pleadings are presented to and not excluded by the court, the motion shall be treated as one for summary judgment .... ”
. As noted, defendant not only pleaded a general denial, it pleaded an affirmative defense in which it admitted that its tower was located off of its easement but justified that location by mutual mistake. In the past, our Supreme Court has held that an admission of fact in an affirmative defense supersedes a general denial of that fact.
Brand v. Brand,
