fix(compiler): support referencing enums in namespaces (#20947)
Due to an overly agressive assert the compiler would generate an internal error when referencing an enum declared in namspace. Fixes #18170 PR Close #20947
This commit is contained in:

committed by
Jason Aden

parent
3401283399
commit
634d33f5dd
@ -95,6 +95,15 @@ export function main() {
|
||||
expect(host.isSourceFile).toHaveBeenCalledWith('someFile.ts');
|
||||
});
|
||||
});
|
||||
|
||||
describe('regression', () => {
|
||||
// #18170
|
||||
it('should support resolving symbol with members ', () => {
|
||||
init();
|
||||
expect(summaryResolver.resolveSummary(symbolCache.get('/src.d.ts', 'Src', ['One', 'Two'])))
|
||||
.toBeNull();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user