Adding a function declaration invalid typeannotation test