Check if code will compile