Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into named-type-arguments-beta
  • Loading branch information
weswigham committed Apr 26, 2018
commit fc69ca4c4da274fa89cdb85ab8ec4acd0c56fc85
3 changes: 1 addition & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7300,8 +7300,7 @@ namespace ts {
}

function getConstraintDeclaration(type: TypeParameter) {
if (!type.symbol) return;
const decl = getDeclarationOfKind<TypeParameterDeclaration>(type.symbol, SyntaxKind.TypeParameter);
const decl = type.symbol && getDeclarationOfKind<TypeParameterDeclaration>(type.symbol, SyntaxKind.TypeParameter);
return decl && decl.constraint;
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.