Skip arrow functions in checkAndReportErrorForMissingPrefix (#23584)

This commit is contained in:
Andy
2018-04-20 15:02:18 -07:00
committed by GitHub
parent 5c94bef0e1
commit 699ea246ff
2 changed files with 3 additions and 3 deletions

View File

@@ -1568,7 +1568,7 @@ namespace ts {
return false;
}
const container = getThisContainer(errorLocation, /*includeArrowFunctions*/ true);
const container = getThisContainer(errorLocation, /*includeArrowFunctions*/ false);
let location = container;
while (location) {
if (isClassLike(location.parent)) {