mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Fix devtools test (#20731)
* Fix devtools test * Add small test case mimicing the issue from the user test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user