File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -15730,17 +15730,13 @@ namespace ts {
15730
15730
function reportRelationError(message: DiagnosticMessage | undefined, source: Type, target: Type) {
15731
15731
if (incompatibleStack.length) reportIncompatibleStack();
15732
15732
const [sourceType, targetType] = getTypeNamesForErrorDisplay(source, target);
15733
- let generalizedSource: Type ;
15734
- let generalizedSourceType: string ;
15733
+ let generalizedSource = source ;
15734
+ let generalizedSourceType = sourceType ;
15735
15735
15736
15736
if (isLiteralType(source) && !typeCouldHaveTopLevelSingletonTypes(target)) {
15737
15737
generalizedSource = getBaseTypeOfLiteralType(source);
15738
15738
generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);
15739
15739
}
15740
- else {
15741
- generalizedSource = source;
15742
- generalizedSourceType = sourceType;
15743
- }
15744
15740
15745
15741
if (target.flags & TypeFlags.TypeParameter) {
15746
15742
const constraint = getBaseConstraintOfType(target);
You can’t perform that action at this time.
0 commit comments