TypeScript/tests/cases/fourslash/completionsNamespaceMergedWithObject.ts
Andy 69d3ca774a When adding completions for a module, don't get the type of the module if not necessary. (#16768)
* When adding completions for a module, don't get the type of the module if not necessary.

* Use SymbolFlags.Module alias
2017-07-13 09:20:40 -07:00

17 lines
373 B
TypeScript

/// <reference path='fourslash.ts'/>
////namespace N {
//// export type T = number;
////}
////const N = { m() {} };
////let x: N./*type*/;
////N./*value*/;
goTo.marker("type");
verify.completionListContains("T");
verify.not.completionListContains("m");
goTo.marker("value");
verify.not.completionListContains("T");
verify.completionListContains("m");