File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ namespace ts {
19
19
20
20
export function getSymbolId(symbol: Symbol): number {
21
21
if (!symbol.id) {
22
- symbol.id = nextSymbolId;
22
+ symbol.id = nextSymbolId;
23
23
nextSymbolId++;
24
24
}
25
25
@@ -6365,7 +6365,7 @@ namespace ts {
6365
6365
}
6366
6366
6367
6367
function tryElaborateErrorsForPrimitivesAndObjects(source: Type, target: Type) {
6368
- const sourceType = typeToString(source);
6368
+ const sourceType = typeToString(source);
6369
6369
const targetType = typeToString(target);
6370
6370
6371
6371
if ((globalStringType === source && stringType === target) ||
@@ -6501,7 +6501,8 @@ namespace ts {
6501
6501
if (reportErrors) {
6502
6502
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
6503
6503
tryElaborateErrorsForPrimitivesAndObjects(source, target);
6504
- } else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
6504
+ }
6505
+ else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
6505
6506
reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
6506
6507
}
6507
6508
reportRelationError(headMessage, source, target);
You can’t perform that action at this time.
0 commit comments