@@ -3,10 +3,12 @@ tests/cases/conformance/jsx/file.tsx(10,33): error TS2698: Spread types may only
3
3
tests/cases/conformance/jsx/file.tsx(11,33): error TS2698: Spread types may only be created from object types.
4
4
tests/cases/conformance/jsx/file.tsx(12,33): error TS2698: Spread types may only be created from object types.
5
5
tests/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.
6
7
tests/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.
7
9
8
10
9
- ==== tests/cases/conformance/jsx/file.tsx (6 errors) ====
11
+ ==== tests/cases/conformance/jsx/file.tsx (8 errors) ====
10
12
import React = require('react')
11
13
12
14
declare function OverloadComponent<U>(): JSX.Element;
@@ -30,9 +32,13 @@ tests/cases/conformance/jsx/file.tsx(15,33): error TS2698: Spread types may only
30
32
let a4 = <OverloadComponent />;
31
33
let a5 = <OverloadComponent {...arg2} ignore-prop="hello" {...arg1} />;
32
34
~~~~~~~~~
35
+ !!! error TS2698: Spread types may only be created from object types.
36
+ ~~~~~~~~~
33
37
!!! error TS2698: Spread types may only be created from object types.
34
38
let a6 = <OverloadComponent {...arg2} ignore-prop {...arg1} />;
35
39
~~~~~~~~~
40
+ !!! error TS2698: Spread types may only be created from object types.
41
+ ~~~~~~~~~
36
42
!!! error TS2698: Spread types may only be created from object types.
37
43
}
38
44
0 commit comments