|
| 1 | +=== tests/cases/compiler/reactHOCSpreadprops.tsx === |
| 2 | +/// <reference path="react16.d.ts" /> |
| 3 | +import React = require("react"); |
| 4 | +>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0)) |
| 5 | + |
| 6 | +function f<P>(App: React.ComponentClass<P> | React.StatelessComponent<P>): void { |
| 7 | +>f : Symbol(f, Decl(reactHOCSpreadprops.tsx, 1, 32)) |
| 8 | +>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11)) |
| 9 | +>App : Symbol(App, Decl(reactHOCSpreadprops.tsx, 2, 14)) |
| 10 | +>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0)) |
| 11 | +>ComponentClass : Symbol(React.ComponentClass, Decl(react16.d.ts, 421, 9)) |
| 12 | +>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11)) |
| 13 | +>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0)) |
| 14 | +>StatelessComponent : Symbol(React.StatelessComponent, Decl(react16.d.ts, 406, 49)) |
| 15 | +>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11)) |
| 16 | + |
| 17 | + class C extends React.Component<P & { x: number }> { |
| 18 | +>C : Symbol(C, Decl(reactHOCSpreadprops.tsx, 2, 81)) |
| 19 | +>React.Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94)) |
| 20 | +>React : Symbol(React, Decl(reactHOCSpreadprops.tsx, 0, 0)) |
| 21 | +>Component : Symbol(React.Component, Decl(react16.d.ts, 345, 54), Decl(react16.d.ts, 349, 94)) |
| 22 | +>P : Symbol(P, Decl(reactHOCSpreadprops.tsx, 2, 11)) |
| 23 | +>x : Symbol(x, Decl(reactHOCSpreadprops.tsx, 3, 41)) |
| 24 | + |
| 25 | + render() { |
| 26 | +>render : Symbol(C.render, Decl(reactHOCSpreadprops.tsx, 3, 56)) |
| 27 | + |
| 28 | + return <App {...this.props} />; |
| 29 | +>App : Symbol(App, Decl(reactHOCSpreadprops.tsx, 2, 14)) |
| 30 | +>this.props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32)) |
| 31 | +>this : Symbol(C, Decl(reactHOCSpreadprops.tsx, 2, 81)) |
| 32 | +>props : Symbol(React.Component.props, Decl(react16.d.ts, 367, 32)) |
| 33 | + } |
| 34 | + } |
| 35 | +} |
| 36 | + |
0 commit comments