We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Debug.assertDefined
1 parent 5cedbc8 commit 1f69c48Copy full SHA for 1f69c48
src/compiler/checker.ts
@@ -3609,7 +3609,7 @@ namespace ts {
3609
let chain: Symbol[];
3610
const isTypeParameter = symbol.flags & SymbolFlags.TypeParameter;
3611
if (!isTypeParameter && (context.enclosingDeclaration || context.flags & NodeBuilderFlags.UseFullyQualifiedType)) {
3612
- chain = getSymbolChain(symbol, meaning, /*endOfChain*/ true)!;
+ chain = Debug.assertDefined(getSymbolChain(symbol, meaning, /*endOfChain*/ true));
3613
Debug.assert(chain && chain.length > 0);
3614
}
3615
else {
0 commit comments