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:
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.
Va. Code § 56-441