2015-10-30 20:34:56 +01:00
|
|
|
///<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 '' };
|
2018-10-29 18:03:25 +01:00
|
|
|
////
|
2015-10-30 20:34:56 +01:00
|
|
|
//// myCtor/*1*/
|
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
edit.insert('.');
|
|
|
|
|
|
|
|
// Check members of the function
|
2019-05-16 23:46:10 +02:00
|
|
|
verify.completions({
|
|
|
|
includes: ["foo", "bar", "qua"].map(
|
|
|
|
name => ({ name, kind: "warning", sortText: completion.SortText.JavascriptIdentifiers }))
|
|
|
|
});
|