|
| 1 | +//// [tests/cases/compiler/jsxDevSelfInSuperArguments.tsx] //// |
| 2 | + |
| 3 | +=== /node_modules/preact/jsx-dev-runtime/index.d.ts === |
| 4 | +export namespace JSX { |
| 5 | +>JSX : Symbol(JSX, Decl(index.d.ts, 0, 0)) |
| 6 | + |
| 7 | + interface Element {} |
| 8 | +>Element : Symbol(Element, Decl(index.d.ts, 0, 22)) |
| 9 | + |
| 10 | + interface IntrinsicElements { |
| 11 | +>IntrinsicElements : Symbol(IntrinsicElements, Decl(index.d.ts, 1, 24)) |
| 12 | + |
| 13 | + h2: {}; |
| 14 | +>h2 : Symbol(IntrinsicElements.h2, Decl(index.d.ts, 2, 33)) |
| 15 | + } |
| 16 | +} |
| 17 | +export function jsxDEV(type: any, props: any, key?: any, isStatic?: boolean, source?: any, self?: any): JSX.Element; |
| 18 | +>jsxDEV : Symbol(jsxDEV, Decl(index.d.ts, 5, 1)) |
| 19 | +>type : Symbol(type, Decl(index.d.ts, 6, 23)) |
| 20 | +>props : Symbol(props, Decl(index.d.ts, 6, 33)) |
| 21 | +>key : Symbol(key, Decl(index.d.ts, 6, 45)) |
| 22 | +>isStatic : Symbol(isStatic, Decl(index.d.ts, 6, 56)) |
| 23 | +>source : Symbol(source, Decl(index.d.ts, 6, 76)) |
| 24 | +>self : Symbol(self, Decl(index.d.ts, 6, 90)) |
| 25 | +>JSX : Symbol(JSX, Decl(index.d.ts, 0, 0)) |
| 26 | +>Element : Symbol(JSX.Element, Decl(index.d.ts, 0, 22)) |
| 27 | + |
| 28 | +=== /index.tsx === |
| 29 | +class Base { |
| 30 | +>Base : Symbol(Base, Decl(index.tsx, 0, 0)) |
| 31 | + |
| 32 | + constructor(public content: any) {} |
| 33 | +>content : Symbol(Base.content, Decl(index.tsx, 1, 16)) |
| 34 | +} |
| 35 | +class Card extends Base { |
| 36 | +>Card : Symbol(Card, Decl(index.tsx, 2, 1)) |
| 37 | +>Base : Symbol(Base, Decl(index.tsx, 0, 0)) |
| 38 | + |
| 39 | + constructor(title: string) { |
| 40 | +>title : Symbol(title, Decl(index.tsx, 4, 16)) |
| 41 | + |
| 42 | + super(<h2>{title}</h2>); |
| 43 | +>super : Symbol(Base, Decl(index.tsx, 0, 0)) |
| 44 | +>h2 : Symbol(JSX.IntrinsicElements.h2, Decl(index.d.ts, 2, 33)) |
| 45 | +>title : Symbol(title, Decl(index.tsx, 4, 16)) |
| 46 | +>h2 : Symbol(JSX.IntrinsicElements.h2, Decl(index.d.ts, 2, 33)) |
| 47 | + } |
| 48 | +} |
| 49 | + |
0 commit comments