File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5859,7 +5859,7 @@ namespace ts {
58595859 }
58605860
58615861 if (!(target.flags & TypeFlags.Never)) {
5862- if (target.flags & TypeFlags.Any) return Ternary.True;
5862+ if (target.flags & TypeFlags.Any || source.flags & TypeFlags.Never ) return Ternary.True;
58635863 if (source.flags & TypeFlags.Undefined) {
58645864 if (!strictNullChecks || target.flags & (TypeFlags.Undefined | TypeFlags.Void) || source === emptyArrayElementType) return Ternary.True;
58655865 }
@@ -5874,7 +5874,7 @@ namespace ts {
58745874 }
58755875 if (source.flags & TypeFlags.StringLiteral && target === stringType) return Ternary.True;
58765876 if (relation === assignableRelation || relation === comparableRelation) {
5877- if (source.flags & ( TypeFlags.Any | TypeFlags.Never) ) return Ternary.True;
5877+ if (source.flags & TypeFlags.Any) return Ternary.True;
58785878 if (source === numberType && target.flags & TypeFlags.Enum) return Ternary.True;
58795879 }
58805880 if (source.flags & TypeFlags.Boolean && target.flags & TypeFlags.Boolean) {
You can’t perform that action at this time.
0 commit comments