“Having, in effect, given notice to the public traveling this highway that it would warn them of trains at this crossing, I think that it was bound to assume
that every member of such public would receive, and rely on, such notice While undoubtedly lack of reliance by plaintiff upon the custom [of maintaining a watchman] has an important bearing and effect upon the question whether the plaintiff was guilty of contributory negligence, it seems to me clear that the knowledge or lack of knowledge of the plaintiff, unknown to the defendant, concerning such custom cannot affect the nature or extent of the duty owed to the plaintiff by the defendant or the performance of such duty.” We think this is a correct statement of the law. It is true that negligence must be predicated upon a duty owed to the plaintiffs. The duty of care owed by a railroad company to users of the highway does not extend to trespassers or bare licensees, or at least the degree of care is different.
Jackson v. Pennsylvania R. Co., 176 Md. 1, 5, 3 A. 2d 719, 120 A. L. R. 1068;
Garland v. Boston & Me. R. R., 76 N. H. 556, 86 A 141, 46 L. R. A., N. S., 338, Ann. Cas. 1913E, 924. Similarly, the duty owed by a carrier to passengers or invitees, is different from that owed to users of the highway.
Dilley v. Baltimore Transit Co., 183 Md. 557, 39 A. 2d 469, 155 A. L. R. 627. But once the duty of care to a certain class of persons is established, there would appear to be no room for a contention that the primary obligation extends to some and not to others. Of course, in the instant case, contributory negligence of the truck driver, if any, could not be imputed to the passenger.
Frederick & Baltimore Transportation Co. v. Mumford, 154 Md. 8, 139 A. 541;
State v. Norfolk & Western Ry., supra. There is no indication in the instant case, that Johnson’s negligence, if any, was the sole proximate cause, or more than a concurrent cause, of the accident.
Davidson Transfer & Storage Co. v. State, 180 Md. 63, 22 A. 2d 582. Upon the facts presented in the instant case, we hold that the demurrer was properly overruled