Sen. Kamala Harris, D-Calif., announced during a town hall Wednesday that she will support a Senate bill to expand Medicare to all Americans.

"I intend to co-sponsor the Medicare for All bill because it's just the right thing to do," Harris tweeted following a town hall at Oakland, Calif.

Sen. Bernie Sanders, I-Vt., plans to introduce a bill in September that would expand the current federal Medicare program for those 65 or older to all people.

Harris, said to be a top Democratic prospect for the 2020 presidential election, had previously announced she supports the idea of a single-payer system because it makes sense from a fiscal perspective.

"Healthcare should be a right, not a privilege," Harris said. "This should not be a partisan issue. It shouldn't even be a bipartisan issue. It should be a nonpartisan issue."

"It is so much better that people have a meaningful access to affordable healthcare at every stage of life — from birth onward," Harris added. "The alternative is that taxpayers are paying huge amounts of money for them to get health care in an emergency room."

Sanders tweeted his thanks to Harris later Wednesday evening.

"Thank you @KamalaHarris for your support. Let's make health care a right, not a privilege," Sanders wrote.

Last month Republicans in the Senate failed to make to pass legislation to repeal and replace Obamacare, and lawmakers have indicated they will move focus to other parts of President Trump's agenda, including infrastructure funding and tax reform.