|
| 1 | +=== tests/cases/compiler/jsxCallElaborationCheckNoCrash1.tsx === |
| 2 | +/// <reference path="react16.d.ts" /> |
| 3 | + |
| 4 | +import * as React from "react"; |
| 5 | +>React : Symbol(React, Decl(jsxCallElaborationCheckNoCrash1.tsx, 2, 6)) |
| 6 | + |
| 7 | +type Tags = "span" | "div"; |
| 8 | +>Tags : Symbol(Tags, Decl(jsxCallElaborationCheckNoCrash1.tsx, 2, 31)) |
| 9 | + |
| 10 | +export const Hoc = <Tag extends Tags>( |
| 11 | +>Hoc : Symbol(Hoc, Decl(jsxCallElaborationCheckNoCrash1.tsx, 6, 12)) |
| 12 | +>Tag : Symbol(Tag, Decl(jsxCallElaborationCheckNoCrash1.tsx, 6, 20)) |
| 13 | +>Tags : Symbol(Tags, Decl(jsxCallElaborationCheckNoCrash1.tsx, 2, 31)) |
| 14 | + |
| 15 | + TagElement: Tag, |
| 16 | +>TagElement : Symbol(TagElement, Decl(jsxCallElaborationCheckNoCrash1.tsx, 6, 38)) |
| 17 | +>Tag : Symbol(Tag, Decl(jsxCallElaborationCheckNoCrash1.tsx, 6, 20)) |
| 18 | + |
| 19 | +): React.SFC => { |
| 20 | +>React : Symbol(React, Decl(jsxCallElaborationCheckNoCrash1.tsx, 2, 6)) |
| 21 | +>SFC : Symbol(React.SFC, Decl(react16.d.ts, 400, 9)) |
| 22 | + |
| 23 | + const Component = () => <TagElement />; |
| 24 | +>Component : Symbol(Component, Decl(jsxCallElaborationCheckNoCrash1.tsx, 9, 8)) |
| 25 | +>TagElement : Symbol(TagElement, Decl(jsxCallElaborationCheckNoCrash1.tsx, 6, 38)) |
| 26 | + |
| 27 | + return Component; |
| 28 | +>Component : Symbol(Component, Decl(jsxCallElaborationCheckNoCrash1.tsx, 9, 8)) |
| 29 | + |
| 30 | +}; |
| 31 | + |
0 commit comments