Closed bvanjoi closed 1 week ago
class expression implement primitive type
https://www.typescriptlang.org/play/?ts=5.3.3#code/MYewdgzgLgBAgjAvDYAbAhhCMBCMCWAtgA6oCmhZYU2YAroQEZkBOMA3gL4BQ3am2AMIES5StVoNmbLkA
class C implements number {} // report that class cannot implement primitive type const A = class B implements number {} // this code should report the same error, but it actually does not.
Refer to the comment above
No response
Looks like #55712
🔎 Search Terms
class expression implement primitive type
🕗 Version & Regression Information
⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.3.3#code/MYewdgzgLgBAgjAvDYAbAhhCMBCMCWAtgA6oCmhZYU2YAroQEZkBOMA3gL4BQ3am2AMIES5StVoNmbLkA
💻 Code
🙁 Actual behavior
Refer to the comment above
🙂 Expected behavior
Refer to the comment above
Additional information about the issue
No response