Files
tsgo/testdata/baselines/reference/compiler/jsdocExtendsClauseMismatch.errors.txt
52525899b4 Use semantic type identity for JSDoc augments checks (#4889)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: weswigham <[email protected]>
Co-authored-by: Wesley Wigham <[email protected]>
2026-08-18 23:44:39 +00:00

22 lines
643 B
Plaintext

main.js(2,20): error TS8023: JSDoc '@extends Component' does not match the 'extends PureComponent' clause.
==== react.d.ts (0 errors) ====
declare namespace React {
class Component { component: string }
class PureComponent { pure: string }
}
==== main.js (1 errors) ====
/**
* @extends {React.Component}
~~~~~~~~~
!!! error TS8023: JSDoc '@extends Component' does not match the 'extends PureComponent' clause.
*/
class C extends React.PureComponent {}
/**
* @extends {React.Component}
*/
class D extends React.Component {}