fix issue 10277 - Incorrect error file and line on redeclaration of
TypeInfo