ca00b3248b
* Added --noImplicitThis code fix for functions used as object properties Before trying out all the various possibilities for where these functions could be used, I figured I'd start out with a relatively simple use case to verify this is the right approach. Is it? 😄 Starts on #28964. * Fixed function expression names; included new baselines * Got JSDocs to work, hooray! * Added test for 'any' case of no function uses * Refactored for inferFunctionReferencesFromUsage * Fixed inference bug: undefined references cause parameters to default * Removed dead code comments
21 lines
508 B
TypeScript
21 lines
508 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noImplicitThis: true
|
|
////function returnThisMember([| |]suffix: string) {
|
|
//// return this.member + suffix;
|
|
//// }
|
|
////
|
|
//// interface Container {
|
|
//// member: string;
|
|
//// returnThisMember(suffix: string): string;
|
|
//// }
|
|
////
|
|
//// const container: Container = {
|
|
//// member: "sample",
|
|
//// returnThisMember: returnThisMember,
|
|
//// };
|
|
////
|
|
//// container.returnThisMember("");
|
|
|
|
verify.rangeAfterCodeFix("this: Container, ");
|