You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: this does not occur without the generic type on Accessor. If it is just class Accessor with function (this: Accessor) there is no error on calling this._get('something').
Related Issues:#10302, Potentially a duplicate of #29132. This was supposedly fixed in #24645 however it is problematic with generics as mentioned above.
The text was updated successfully, but these errors were encountered:
TypeScript Version: Tested on 3.2.4, 3.6.3, 3.8.0-dev.20191112
Search Terms: Property, protected, accessible, through, instance, generics, decorator
Code
Expected behavior: Should allow access to protected function _get since this is typed as an instance of the class Accessor.
Actual behavior:
Note: this does not occur without the generic type on Accessor. If it is just
class Accessor
withfunction (this: Accessor)
there is no error on callingthis._get('something')
.Playground Link: Playground Link
Related Issues: #10302, Potentially a duplicate of #29132. This was supposedly fixed in #24645 however it is problematic with generics as mentioned above.
The text was updated successfully, but these errors were encountered: