@@ -3,10 +3,12 @@ tests/cases/conformance/jsx/file.tsx(10,33): error TS2698: Spread types may only
33tests/cases/conformance/jsx/file.tsx(11,33): error TS2698: Spread types may only be created from object types.
44tests/cases/conformance/jsx/file.tsx(12,33): error TS2698: Spread types may only be created from object types.
55tests/cases/conformance/jsx/file.tsx(14,33): error TS2698: Spread types may only be created from object types.
6+ tests/cases/conformance/jsx/file.tsx(14,63): error TS2698: Spread types may only be created from object types.
67tests/cases/conformance/jsx/file.tsx(15,33): error TS2698: Spread types may only be created from object types.
8+ tests/cases/conformance/jsx/file.tsx(15,55): error TS2698: Spread types may only be created from object types.
79
810
9- ==== tests/cases/conformance/jsx/file.tsx (6 errors) ====
11+ ==== tests/cases/conformance/jsx/file.tsx (8 errors) ====
1012 import React = require('react')
1113
1214 declare function OverloadComponent<U>(): JSX.Element;
@@ -30,9 +32,13 @@ tests/cases/conformance/jsx/file.tsx(15,33): error TS2698: Spread types may only
3032 let a4 = <OverloadComponent />;
3133 let a5 = <OverloadComponent {...arg2} ignore-prop="hello" {...arg1} />;
3234 ~~~~~~~~~
35+ !!! error TS2698: Spread types may only be created from object types.
36+ ~~~~~~~~~
3337!!! error TS2698: Spread types may only be created from object types.
3438 let a6 = <OverloadComponent {...arg2} ignore-prop {...arg1} />;
3539 ~~~~~~~~~
40+ !!! error TS2698: Spread types may only be created from object types.
41+ ~~~~~~~~~
3642!!! error TS2698: Spread types may only be created from object types.
3743 }
3844
0 commit comments