Commit 887be28
committed
Fix Debug Failure crash in combineValueAndTypeSymbols for mapped symbols
When a value symbol is a mapped symbol (from a mapped type like Omit<>),
combineValueAndTypeSymbols was losing the mapped symbol's check flags and
link properties (mappedType, keyType). This caused getTypeOfSymbol to
fall through to getTypeOfVariableOrParameterOrProperty, which crashed on
Debug.assertIsDefined(symbol.valueDeclaration) since mapped symbols
don't have a valueDeclaration.
The fix propagates CheckFlags.Mapped and the corresponding mapped symbol
links from the value symbol to the combined symbol, so getTypeOfSymbol
correctly dispatches to getTypeOfMappedSymbol.
Fixes #585341 parent cdc205d commit 887be28
4 files changed
Lines changed: 54510 additions & 54419 deletions
File tree
- src/compiler
- tests
- baselines/reference
- cases/conformance/types/mapped
0 commit comments