Fix the quick info on error types

This commit is contained in:
Sheetal Nandi
2014-09-30 17:14:58 -07:00
parent 4781224d86
commit 0dbd303084
3 changed files with 4 additions and 4 deletions

View File

@@ -1288,7 +1288,7 @@ module ts {
}
function writeTypeParameters(typeParameters: TypeParameter[], writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags, typeStack?: Type[]) {
if (typeParameters) {
if (typeParameters && typeParameters.length) {
writePunctuation(writer, SyntaxKind.LessThanToken);
for (var i = 0; i < typeParameters.length; i++) {
if (i > 0) {