President Donald Trump says Democratic White House contenders' willingness to extend government health care to people in the country illegally will get him reelected.

Trump is at a bilateral meeting with German Chancellor Angela Merkel in Japan. But he said that he "passed a TV set" and saw the Democrats debating.

RELATED: VERIFY: Fact-checking night 2 of the first Democratic debate

RELATED: Front-runners clash on race, age, health care, Trump

RELATED: Why is Eric Swalwell wearing an orange ribbon at the debate?

All Democrats on the stage for the second night of the debates Thursday in Miami raised their hands when asked if they would give health care to migrants in the country illegally.

Trump tweeted: "All Democrats just raised their hands for giving millions of illegal aliens unlimited healthcare. How about taking care of American Citizens first!?"

He then added: "That's the end of that race!"