Fix devtools test (#20731)

* Fix devtools test

* Add small test case mimicing the issue from the user test
This commit is contained in:
Wesley Wigham
2017-12-18 14:47:45 -08:00
committed by GitHub
parent 60bd262437
commit 6c15fc6634
5 changed files with 89 additions and 2 deletions

View File

@@ -4682,6 +4682,7 @@ namespace ts {
}
else if (isJSDocPropertyTag(declaration)
|| isPropertyAccessExpression(declaration)
|| isIdentifier(declaration)
|| isMethodDeclaration(declaration) && !isObjectLiteralMethod(declaration)) {
// TODO: Mimics old behavior from incorrect usage of getWidenedTypeForVariableLikeDeclaration, but seems incorrect
type = tryGetTypeFromEffectiveTypeNode(declaration) || anyType;