TypeScript/tests/cases/fourslash/getJavaScriptGlobalCompletions1.ts
2019-05-20 15:53:51 -07:00

16 lines
407 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowNonTsExtensions: true
// @Filename: Foo.js
//// function f() {
//// // helloWorld leaks from here into the global space?
//// if (helloWorld) {
//// return 3;
//// }
//// return 5;
//// }
////
//// hello/**/
verify.completions({ includes: { name: "helloWorld", sortText: completion.SortText.JavascriptIdentifiers } });