00cea41b65
Fixes #15024
23 lines
573 B
TypeScript
23 lines
573 B
TypeScript
///<reference path="fourslash.ts" />
|
|
|
|
// Check for any odd symbol leakage
|
|
|
|
// @allowNonTsExtensions: true
|
|
// @Filename: myMod.js
|
|
//// function myCtor(x) {
|
|
//// this.qua = 10;
|
|
//// }
|
|
//// myCtor.prototype.foo = function() { return 32 };
|
|
//// myCtor.prototype.bar = function() { return '' };
|
|
////
|
|
//// myCtor/*1*/
|
|
|
|
goTo.marker('1');
|
|
edit.insert('.');
|
|
|
|
// Check members of the function
|
|
verify.completions({
|
|
includes: ["foo", "bar", "qua"].map(
|
|
name => ({ name, kind: "warning", sortText: completion.SortText.JavascriptIdentifiers }))
|
|
});
|