Corrected line number of errors in type declarations