pragma solidity ^0.4.24;

contract NewPragma {
  uint x;

  constructor() public {
    x = 5;
  }
}


Update pragma version for test contract
pragma solidity ^0.5.0;

contract NewPragma {
  uint x;

  constructor() public {
    x = 5;
  }
}