Republican Sen. Rand Paul was optimistic about repealing Obamacare after he spent the day playing golf with President Trump.

"We had a great day with the president. Played some golf, and we talked and we talked about a little bit of healthcare. I continue to be very optimistic that we are getting closer and closer to an agreement on repealing Obamacare," Paul said.

Budget director Mick Mulvaney, a former leading House conservative, also joined the two on the golf course.

After Paul predicted in early March that the Republican healthcare bill would fail, Trump took to Twitter to pressure the senator to support the bill.

Trump hinted earlier Sunday on Twitter that there's potential for Republicans to unify around healthcare. His tweet followed a week of attacks on the conservative House Freedom Caucus after the failure of the American Health Care Act.

But in an interview published Sunday by the Financial Times, Trump warned the Freedom Caucus that he'd work with Democrats on healthcare if he can't make a deal with the conservative group.