fix issue 10277 - Incorrect error file and line on redeclaration of
TypeInfo
Merge pull request #2169 from hpohl/10277

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