2015-12-07 20:55:30 +01:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// No prototype assignments are needed to enable class inference
|
|
|
|
|
|
|
|
// @allowNonTsExtensions: true
|
|
|
|
// @Filename: myMod.js
|
|
|
|
//// function myCtor() {
|
|
|
|
//// this.foo = 'hello';
|
|
|
|
//// this.bar = 10;
|
|
|
|
//// }
|
|
|
|
//// let x = new myCtor();
|
|
|
|
//// x/**/
|
|
|
|
|
|
|
|
goTo.marker();
|
|
|
|
edit.insert('.');
|
|
|
|
|
|
|
|
// Check members of the function
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ includes: ["foo", "bar"].map(name => ({ name, kind: "property" })) });
|