@@ -3,9 +3,7 @@ tests/cases/conformance/jsx/file.tsx(18,26): error TS2322: Type 'number' is not
3
3
tests/cases/conformance/jsx/file.tsx(20,13): error TS2558: Expected 1 type arguments, but got 2.
4
4
tests/cases/conformance/jsx/file.tsx(22,13): error TS2558: Expected 1 type arguments, but got 2.
5
5
tests/cases/conformance/jsx/file.tsx(24,12): error TS1099: Type argument list cannot be empty.
6
- tests/cases/conformance/jsx/file.tsx(24,13): error TS2558: Expected 1 type arguments, but got 0.
7
6
tests/cases/conformance/jsx/file.tsx(26,12): error TS1099: Type argument list cannot be empty.
8
- tests/cases/conformance/jsx/file.tsx(26,13): error TS2558: Expected 1 type arguments, but got 0.
9
7
tests/cases/conformance/jsx/file.tsx(39,14): error TS2344: Type 'Prop' does not satisfy the constraint '{ a: string; }'.
10
8
Types of property 'a' are incompatible.
11
9
Type 'number' is not assignable to type 'string'.
@@ -16,7 +14,7 @@ tests/cases/conformance/jsx/file.tsx(51,47): error TS2322: Type 'string' is not
16
14
tests/cases/conformance/jsx/file.tsx(53,47): error TS2322: Type 'string' is not assignable to type 'number'.
17
15
18
16
19
- ==== tests/cases/conformance/jsx/file.tsx (14 errors) ====
17
+ ==== tests/cases/conformance/jsx/file.tsx (12 errors) ====
20
18
import React = require('react');
21
19
22
20
interface Prop {
@@ -53,14 +51,10 @@ tests/cases/conformance/jsx/file.tsx(53,47): error TS2322: Type 'string' is not
53
51
x = <MyComp<> a={10} b="hi" />; // error
54
52
~~
55
53
!!! error TS1099: Type argument list cannot be empty.
56
-
57
- !!! error TS2558: Expected 1 type arguments, but got 0.
58
54
59
55
x = <MyComp<> a={10} b="hi"></MyComp>; // error
60
56
~~
61
57
!!! error TS1099: Type argument list cannot be empty.
62
-
63
- !!! error TS2558: Expected 1 type arguments, but got 0.
64
58
65
59
x= <MyComp<{}> /> // OK
66
60
0 commit comments