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
File tree
4 files changed
+54525
-54434
lines changed- src/compiler
- tests
- baselines/reference
- cases/conformance/types/mapped
4 files changed
+54525
-54434
lines changed
0 commit comments