mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
52525899b4
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: weswigham <[email protected]> Co-authored-by: Wesley Wigham <[email protected]>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
//// [tests/cases/compiler/jsdocExtendsClauseMismatch.ts] ////
|
|
|
|
=== react.d.ts ===
|
|
declare namespace React {
|
|
>React : Symbol(React, Decl(react.d.ts, 0, 0))
|
|
|
|
class Component { component: string }
|
|
>Component : Symbol(Component, Decl(react.d.ts, 0, 25))
|
|
>component : Symbol(Component.component, Decl(react.d.ts, 1, 21))
|
|
|
|
class PureComponent { pure: string }
|
|
>PureComponent : Symbol(PureComponent, Decl(react.d.ts, 1, 41))
|
|
>pure : Symbol(PureComponent.pure, Decl(react.d.ts, 2, 25))
|
|
}
|
|
|
|
=== main.js ===
|
|
/**
|
|
* @extends {React.Component}
|
|
*/
|
|
class C extends React.PureComponent {}
|
|
>C : Symbol(C, Decl(main.js, 0, 0))
|
|
>React.PureComponent : Symbol(React.PureComponent, Decl(react.d.ts, 1, 41))
|
|
>React : Symbol(React, Decl(react.d.ts, 0, 0))
|
|
>PureComponent : Symbol(React.PureComponent, Decl(react.d.ts, 1, 41))
|
|
|
|
/**
|
|
* @extends {React.Component}
|
|
*/
|
|
class D extends React.Component {}
|
|
>D : Symbol(D, Decl(main.js, 3, 38))
|
|
>React.Component : Symbol(React.Component, Decl(react.d.ts, 0, 25))
|
|
>React : Symbol(React, Decl(react.d.ts, 0, 0))
|
|
>Component : Symbol(React.Component, Decl(react.d.ts, 0, 25))
|
|
|