2017-07-07 19:06:12 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// This used to cause a crash because we would ask for exports on `"x"`,
|
|
|
|
// which would return undefined and cause a NPE. Now we return emptySymbol instead.
|
|
|
|
// See GH#16610.
|
|
|
|
|
|
|
|
////declare module "x" {
|
|
|
|
//// declare var x: number;
|
|
|
|
//// export = x;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////let y: /**/
|
|
|
|
|
|
|
|
// This is just a dummy test to cause `getCompletionsAtPosition` to be called.
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ marker: "", excludes: "x" });
|