i. pleading : demurrer. — The only error assigned is the overruling of plaintiff’s demurrer to the answer of defendant. The demurrer is to the entire pleading as a whole. In our opinion the demurrer was properly overruled. When an entire pleading is thus attacked by demurrer, it *316should be overruled if it contains a defense to the action, although some- one or more counts therein is vulnerable to a demurrer. Darr v. Lilley, 11 Iowa, 4; Sample v. Griffith, 5 Id., 376; Zapple v. Rush, 23 Id., 99; Hendershott v. Ping, 24 Id., 134.
2. raikroads. infunction?7‘ The answer before us alleges that the plaintiff had given his consent to have the St. Louis & Cedar Rapids Railway Company enter upon his lands and construct their road thereon; that plaintiff made an agreement with said railroad company to give the right of way over said land and that said road was constructed over said land pursuant to said agreement, and that the defendant is using said road at the sufferance, and with the consent, of spid St. Louis & Cedar Rapids Railroad Company. If these alleged facts are true, (and the demurrer admits them to be true), then the plaintiff has no right to an injunction to enjoin the defendant from operating the road over his land. These facts pleaded in the answer, constitute a good defense to the plaintiff’s action, although the answer may contain allegations which are immaterial, and do not of themselves state a defense.
The judgment of the court below must be
Affirmed.
AI-generated responses must be verified and are not legal advice.