Closed
Description
TypeScript Version: 30c4149
Search Terms:
jsdoc @constructor
this
Code
/** @constructor */ function Example() { this.m = 1; }
/** @constructor */ var Example2 = function() { this.j = 2; };
Compiled with --allowJs --checkJs --noImplicitThis
Expected behavior:
Compiles fine.
Actual behavior:
error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment