|
1 |
| -tests/cases/compiler/a.jsx(1,5): error TS8011: Type arguments can only be used in TypeScript files. |
2 |
| -tests/cases/compiler/a.jsx(2,5): error TS8011: Type arguments can only be used in TypeScript files. |
3 |
| -tests/cases/compiler/a.jsx(3,6): error TS8011: Type arguments can only be used in TypeScript files. |
4 |
| -tests/cases/compiler/a.jsx(4,6): error TS8011: Type arguments can only be used in TypeScript files. |
| 1 | +tests/cases/compiler/a.jsx(1,13): error TS1109: Expression expected. |
| 2 | +tests/cases/compiler/a.jsx(4,5): error TS1003: Identifier expected. |
| 3 | +tests/cases/compiler/a.jsx(4,14): error TS17002: Expected corresponding JSX closing tag for 'number'. |
| 4 | +tests/cases/compiler/a.jsx(4,20): error TS2657: JSX expressions must have one parent element. |
| 5 | +tests/cases/compiler/a.jsx(5,5): error TS1003: Identifier expected. |
| 6 | +tests/cases/compiler/a.jsx(5,6): error TS17008: JSX element 'number' has no corresponding closing tag. |
| 7 | +tests/cases/compiler/a.jsx(6,1): error TS1005: '</' expected. |
5 | 8 |
|
6 | 9 |
|
7 |
| -==== tests/cases/compiler/a.jsx (4 errors) ==== |
| 10 | +==== tests/cases/compiler/a.jsx (7 errors) ==== |
8 | 11 | Foo<number>();
|
9 |
| - ~~~~~~ |
10 |
| -!!! error TS8011: Type arguments can only be used in TypeScript files. |
| 12 | + ~ |
| 13 | +!!! error TS1109: Expression expected. |
| 14 | + Foo<number>(1); |
11 | 15 | Foo<number>``;
|
12 |
| - ~~~~~~ |
13 |
| -!!! error TS8011: Type arguments can only be used in TypeScript files. |
14 | 16 | <Foo<number>></Foo>;
|
15 |
| - ~~~~~~ |
16 |
| -!!! error TS8011: Type arguments can only be used in TypeScript files. |
| 17 | + ~ |
| 18 | +!!! error TS1003: Identifier expected. |
| 19 | + ~~~~~~ |
| 20 | +!!! error TS17002: Expected corresponding JSX closing tag for 'number'. |
| 21 | + ~ |
| 22 | +!!! error TS2657: JSX expressions must have one parent element. |
17 | 23 | <Foo<number>/>;
|
| 24 | + ~ |
| 25 | +!!! error TS1003: Identifier expected. |
18 | 26 | ~~~~~~
|
19 |
| -!!! error TS8011: Type arguments can only be used in TypeScript files. |
| 27 | +!!! error TS17008: JSX element 'number' has no corresponding closing tag. |
| 28 | + |
| 29 | + |
| 30 | +!!! error TS1005: '</' expected. |
0 commit comments