Every corporation operating a railroad in this Commonwealth, whether such corporation be created under the laws of this Commonwealth or otherwise, shall be liable in damages for any and all injury sustained by any employee of such corporation under the following circumstances:
(1) When such injury results from the wrongful act, neglect or default of an agent or officer of such corporation superior to the employee injured, or of a person employed by such corporation having the right to control or direct the services of such employee injured, or the services of the employee by whom he is injured; and
(2) When such injury results from the wrongful act, neglect or default of a coemployee engaged in another department of labor from that of the employee injured or of a coemployee (notwithstanding the fact that the party injured had the right to direct the services of the coemployee) in the performance of any duty on or about the same or another train of cars, or on or about an engine, or of a coemployee who has charge of any switch, signal point or locomotive engine, or who is charged with dispatching trains or transmitting telegraphic or telephonic orders.
When it shall appear in the evidence at the trial of any action for damages that the accident occurred while the employee was working on an engine or on a car standing upon a track it shall be no defense to such action for the defendant railroad to show that such engine or car was guarded by a derailer or a blue flag or in any other manner. Knowledge by any employee injured of the defective or unsafe character or condition of any machinery, ways, appliances or structures of such corporation shall not of itself be a bar to recovery for any injury or death caused thereby.
When death, whether instantaneous or otherwise, results from any injury to any employee of such corporation received as aforesaid, the personal representatives of such employee shall have a right of action therefor against such corporation and may recover damages in respect thereof.
Any contract or agreement, express or implied, made by any such employee to waive the benefit of this section or any part thereof shall be null and void, and this section shall not be construed to deprive any such employee or his personal representative of any right or remedy to which he is now entitled under the laws of this Commonwealth.
The provisions of this section shall always be so restricted in their application as not to conflict with any of the provisions of the Constitution or laws of the United States and as if necessary limitation upon their interpretation had been herein expressed in each case.
1926, p. 853; Michie Code 1942, § 4019a.