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

http://d.puremagic.com/issues/show_bug.cgi?id=10277