From ee4baef51fba69ed6fcd9ea89cd44d3f77f21a46 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Sun, 1 May 2016 21:08:53 -0700 Subject: [PATCH] Applied suggested change. --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ef53b6e7d61..f182ce899ce 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5912,7 +5912,7 @@ namespace ts { } // The constraint may need to be further instantiated with its 'this' type. - constraint = getTypeWithThisArgument(constraint); + constraint = getTypeWithThisArgument(constraint, source); // Report constraint errors only if the constraint is not the empty object type const reportConstraintErrors = reportErrors && constraint !== emptyObjectType;