that feling when you ctrl-z 1 too many times

This commit is contained in:
Wesley Wigham
2015-10-29 18:50:11 -07:00
parent 19e796dcbd
commit 0d0c05d1d3
+1 -1
View File
@@ -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;
}
}