Bug Report
The __proto__ in the object literal has special meanings in JavaScript and TypeScript doesn't recognize that.
🔎 Search Terms
__proto__
🕗 Version & Regression Information
💻 Code
class X { echo() { return this } }
const y = { __proto__: X.prototype }
🙁 Actual behavior
Type of y is `{ proto: X }
🙂 Expected behavior
Type of y is X
Bug Report
The
__proto__in the object literal has special meanings in JavaScript and TypeScript doesn't recognize that.🔎 Search Terms
__proto__🕗 Version & Regression Information
💻 Code
🙁 Actual behavior
Type of
yis `{ proto: X }🙂 Expected behavior
Type of
yisX