|
| 1 | +=== tests/cases/conformance/jsx/a.tsx === |
| 2 | +namespace JSX { |
| 3 | +>JSX : Symbol(JSX, Decl(a.tsx, 0, 0)) |
| 4 | + |
| 5 | + export interface IntrinsicElements { [key: string]: any } |
| 6 | +>IntrinsicElements : Symbol(IntrinsicElements, Decl(a.tsx, 0, 15)) |
| 7 | +>key : Symbol(key, Decl(a.tsx, 1, 42)) |
| 8 | +} |
| 9 | + |
| 10 | +const a = {} as never; |
| 11 | +>a : Symbol(a, Decl(a.tsx, 4, 5)) |
| 12 | + |
| 13 | +const b = null; |
| 14 | +>b : Symbol(b, Decl(a.tsx, 5, 5)) |
| 15 | + |
| 16 | +const c = undefined; |
| 17 | +>c : Symbol(c, Decl(a.tsx, 6, 5)) |
| 18 | +>undefined : Symbol(undefined) |
| 19 | + |
| 20 | +const d = <div { ...a } /> |
| 21 | +>d : Symbol(d, Decl(a.tsx, 8, 5)) |
| 22 | +>div : Symbol(JSX.IntrinsicElements, Decl(a.tsx, 0, 15)) |
| 23 | +>a : Symbol(a, Decl(a.tsx, 4, 5)) |
| 24 | + |
| 25 | +const e = <div { ...b } /> |
| 26 | +>e : Symbol(e, Decl(a.tsx, 9, 5)) |
| 27 | +>div : Symbol(JSX.IntrinsicElements, Decl(a.tsx, 0, 15)) |
| 28 | +>b : Symbol(b, Decl(a.tsx, 5, 5)) |
| 29 | + |
| 30 | +const f = <div { ...c } /> |
| 31 | +>f : Symbol(f, Decl(a.tsx, 10, 5)) |
| 32 | +>div : Symbol(JSX.IntrinsicElements, Decl(a.tsx, 0, 15)) |
| 33 | +>c : Symbol(c, Decl(a.tsx, 6, 5)) |
| 34 | + |
0 commit comments