File: parseUnaryExpressionNoTypeAssertionInJsx4.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (24 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download
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 `&gt;`?
    
    
!!! error TS1005: '</' expected.