Commit 720e1fd
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 c9e7428 commit 720e1fd
4 files changed
Lines changed: 54525 additions & 54434 deletions
File tree
- src/compiler
- tests
- baselines/reference
- cases/conformance/types/mapped
0 commit comments