mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Discriminate types with divergent read/write property types (#55576)
This commit is contained in:
committed by
GitHub
parent
08e0eb74e6
commit
f424a6be05
@@ -14389,7 +14389,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
if (writeTypes || writeType !== type) {
|
||||
writeTypes = append(!writeTypes ? propTypes.slice() : writeTypes, writeType);
|
||||
}
|
||||
else if (type !== firstType) {
|
||||
if (type !== firstType) {
|
||||
checkFlags |= CheckFlags.HasNonUniformType;
|
||||
}
|
||||
if (isLiteralType(type) || isPatternLiteralType(type)) {
|
||||
|
||||
Reference in New Issue
Block a user