mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
that feling when you ctrl-z 1 too many times
This commit is contained in:
@@ -6334,7 +6334,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
// Use original type if construct contains assignments to variable
|
||||
if (!nodeStack.length && isVariableAssignedWithin(symbol, node)) {
|
||||
if (type != originalType && isVariableAssignedWithin(symbol, node)) {
|
||||
type = originalType;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user