Thе writ describes this as “an action of tort and or contract.” The plaintiff’s appeal relates only to сounts 1 and 2 1 of the declaration, which sound in tort, and are against the defendant insurance company resрectively for the death and for the conscious suffering of James Matthews, the plaintiff’s husband. Both "counts allege that on or about May 10, 1966, the defendant was under contract with Boston Edison Company, the decedent’s employer, to pay workmen’s compensation under G. L. c. 152; 2 that the defendant assumed the duty to inspect the Edison premises and to assist in promoting safety for its employees; that the *471 defendant knew or should have known that this undertaking was for the protection of the employees, including the decedent; and that the defendant in negligently performing this undertaking violated its duty of care owed to the decedent, who, on or about May 10, 1966, as a result was elеctrocuted and killed. The defendant’s demurrer for failure to state a cause of action was sustained, аnd leave to amend was denied. The plaintiff appealed.
As there was no allegation in the declaration that the plaintiff’s intestate had given written notice to his employer of his claim of common law rights of action to recover damages for personal injuries arising out of and in the course of his employment, he must be taken (and it is not otherwise contended) to have given no such notice and to have waived such rights. G. L. c. 152, § 24 (as amended through St. 1955, c. 174, § 5). In other words, if the defendant insurer stands in the shoes of the employer, the plaintiff will be restricted to recovery under the Workmen’s Compensation Act. G. L. c. 152, § 24. See
Bresnahan
v.
Barre,
The case at bar, accordingly, presents thе question whether the insurer is “some person other than the insured’ ’ under G. L. c. 152, § 15.
1
This is a subject as to which cases in other jurisdiсtions are not unanimous. The majority of courts which have considered this question have held that the insurer enjoys thе same benefits and burdens as the employer, and have denied recovery in a common law action аgainst the insurer.
Sarber
v.
Aetna Life Ins. Co.
Nо case has squarely presented this question under our own statute. In
McDonald
v.
Employers’ Liab. Assur. Corp. Ltd.
We do not extend the implications of this statement to conclude the present case, as we are of opinion that our Workmen’s Compensation Act does not have as a purpose that the insurer be sued as a third party for performance of a function which furthers the goals of the entire compensation program. “Insurance companies which engage in accident prevention work, thе social desirability of which cannot be questioned, should be able to do so without incurring unlimited liability for failing to discover a hazard that some jury might think ought to have been discovered. If an insurance company can escape tort liability altogether by not making any inspections on the premises of the insured, but may incur unlimited tort liability by making sоme inspections, it more than likely will decline to make any, unless required to do so by statute. The ultimate losers will be workmen and their families.”
Kotarski
v.
Aetna Cas. & Sur. Co.
With the exception of
Mager
v.
United Hosps. of Newark
88 N. J. Super. 421, the decisions reaching a contrary result either rest on a significantly different сompensation statute
2
*474
or have been vitiated by subsequent legislation.
1
We believe that the object of workmen’s compensation legislation will be best served by holding that, for the .purposes of this action, the defendant is not “some person other than the insured” undеr G. L. c. 152, § 15. See
Williams
v.
United States Fid. & Guar. Co.
The order sustaining the demurrer and denying leave to amend is affirmed. Judgment for the defendant.
So ordered. ■
Notes
The remaining counts are against other defendants.
See c. 152, § 1 (7).
“Where the injury fоr which compensation is payable was caused under circumstances creating a legal liability in some person other than the insured to pay damages in respect thereof, the employee may at his оption proceed either at law against that person to recover damages or against the insurеr for compensation under this chapter, but . . . [with exceptions presently immaterial] not against both.”
This quotation, was cited with approval and followed in Smith v. American Employers’ Ins. Co. 102 N. H. 530, 532-533. The New Hаmpshire Compensation Act has been modified to define “employer” to include the employer’s compensation insurance carrier. N. H. Rev. Sts. Anno. § 281:2 (I) (1961).
The Iowa act considered in
Fabricius
v.
Montgomery Elev. Co.
Compare
Smith
v.
American Employers’ Ins. Co.
102 N. H. 530, with N. H. Rev. Sts. Anno. §§ 281:2 (I), 281:14 (I) (1961). Compare
Mays
v.
Libert
y
Mut. Ins. Co.
