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
@@ -6367,7 +6367,7 @@ namespace ts {
6367
6367
}
6368
6368
6369
6369
function tryElaborateErrorsForPrimitivesAndObjects(source: Type, target: Type) {
6370
- const sourceType = typeToString(source);
6370
+ const sourceType = typeToString(source);
6371
6371
const targetType = typeToString(target);
6372
6372
6373
6373
if ((globalStringType === source && stringType === target) ||
@@ -6503,7 +6503,8 @@ namespace ts {
6503
6503
if (reportErrors) {
6504
6504
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
6505
6505
tryElaborateErrorsForPrimitivesAndObjects(source, target);
6506
- } else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
6506
+ }
6507
+ else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
6507
6508
reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
6508
6509
}
6509
6510
else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
You can’t perform that action at this time.
0 commit comments