1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
tests/cases/compiler/index.tsx(3,14): error TS17008: JSX element 'number' has no corresponding closing tag.
tests/cases/compiler/index.tsx(4,13): error TS17014: JSX fragment has no corresponding closing tag.
tests/cases/compiler/index.tsx(5,14): error TS1003: Identifier expected.
tests/cases/compiler/index.tsx(5,18): error TS1382: Unexpected token. Did you mean `{'>'}` or `>`?
tests/cases/compiler/index.tsx(6,1): error TS1005: '</' expected.
==== tests/cases/compiler/index.tsx (5 errors) ====
const x = "oops";
const a = + <number> x;
~~~~~~
!!! error TS17008: JSX element 'number' has no corresponding closing tag.
const b = + <> x;
~~
!!! error TS17014: JSX fragment has no corresponding closing tag.
const c = + <1234> x;
~~~~
!!! error TS1003: Identifier expected.
~
!!! error TS1382: Unexpected token. Did you mean `{'>'}` or `>`?
!!! error TS1005: '</' expected.
|