Daniel Radcliffe has refused to rule out reprising his role as Harry Potter, saying "look what happened with Harrison Ford and Han Solo."

Radcliffe, 26, rose to fame as boy wizard Harry Potter in the film adaptation of JK Rowling’s hit book series.

He has since gone on to star as poet Allen Ginsberg in "Kill Your Darlings" and as a magician in "Now You See Me: The Second Act."

Radcliffe told Radio Times that he may be convinced to return as Harry Potter if new play "The Cursed Child" reaches cinema.

“It would depend on the script,” he said. “The circumstances would have to be pretty extraordinary. But then I am sure Harrison Ford said that with Han Solo and look what happened there! So I am saying ‘No’ for now but leaving room to backtrack in the future.”

"The Cursed Child" is co-written by Rowling and is the first new "Harry Potter" story in nine years. All that is known is that the story is set 19 years after Harry, Ron and Hermione left Hogwarts. Harry’s son, Albus, takes centre stage in the play.

Jamie Parker is playing a grown-up Harry, who now works for the Ministry of Magic. Sam Clemmett takes on the role of Albus, while Noma Dumezweni has been cast as Hermione and Paul Thornley plays Ron.

This article originally appeared on News.com.au.