Polymorphic TypedArray methods return wrong type in subclasses #38665
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Milestone
TypeScript Version: 4.0.0-dev.20200519
Search Terms:
typedarray subarray polymorphic
Code
Expected behavior:
No error.
Actual behavior:
error TS2339: Property 'foo' does not exist on type 'Uint8Array'.
Playground Link: Playground Link
Related Issues:
The text was updated successfully, but these errors were encountered: