The late night host joined the singer-songwriter for a surprise duet at her show on Friday night
Credit: Lester Cohen/Getty

Meghan Trainor just had the “BEST SHOW YET,” thanks to James Corden!

The 22-year-old pop singer performed at the Greek Theatre in Los Angeles on Friday, and asked The Late Late Show host to join her for a special duet to her hit, “Like I’m Gonna Lose You.” The two rocked out to the song, and Trainor expressed her gratitude for the surprise appearance on Twitter.

“@JKCorden you are an absolute legend. Thank you SO MUCH for singing with me last night at the @Greek_Theatre. I’ll never forget it,” Trainor wrote on Twitter.

The Carpool Karaoke host, 37, responded to Trainor’s tweet, responding, “Aw man! I LOVED IT! Thanks for asking me, it was helluva night! X.”

Trainor then posted a video made by her brother, Ryan Trainor, and wrote, “LA WAS THE BEST SHOW YET! Thank you so much to my special guests @j_corden and @garytrainor and thank you to my amazing openers @haileesteinfeld and @commonkings ! #UntouchableTour.”

WATCH: Can You Guess Which Meghan Trainor Hit Originally Had a Reggae Vibe?

Trainor’s Untouchable Tour continues Sunday night at the Comerica Theatre in Phoenix, Arizona. The Late Late Show with James Corden airs weekdays at 12:37 a.m. ET on CBS.