File: tsxAttributeInvalidNames.errors.txt

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (50 lines) | stat: -rw-r--r-- 2,330 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
tests/cases/conformance/jsx/file.tsx(10,8): error TS1003: Identifier expected.
tests/cases/conformance/jsx/file.tsx(10,10): error TS1005: ';' expected.
tests/cases/conformance/jsx/file.tsx(10,10): error TS2304: Cannot find name 'data'.
tests/cases/conformance/jsx/file.tsx(10,15): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/jsx/file.tsx(10,18): error TS1005: ':' expected.
tests/cases/conformance/jsx/file.tsx(10,21): error TS1109: Expression expected.
tests/cases/conformance/jsx/file.tsx(10,22): error TS1109: Expression expected.
tests/cases/conformance/jsx/file.tsx(11,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
tests/cases/conformance/jsx/file.tsx(11,8): error TS1003: Identifier expected.
tests/cases/conformance/jsx/file.tsx(11,9): error TS2304: Cannot find name 'data'.
tests/cases/conformance/jsx/file.tsx(11,13): error TS1005: ';' expected.
tests/cases/conformance/jsx/file.tsx(11,20): error TS1161: Unterminated regular expression literal.


==== tests/cases/conformance/jsx/file.tsx (12 errors) ====
    declare module JSX {
    	interface Element { }
    	interface IntrinsicElements {
    		test1: { "data-foo"?: string };
    		test2: { "data-foo"?: string };
    	}
    }
    
    // Invalid names
    <test1 32data={32} />;
           ~~
!!! error TS1003: Identifier expected.
             ~~~~
!!! error TS1005: ';' expected.
             ~~~~
!!! error TS2304: Cannot find name 'data'.
                  ~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
                     ~
!!! error TS1005: ':' expected.
                        ~
!!! error TS1109: Expression expected.
                         ~
!!! error TS1109: Expression expected.
    <test2 -data={32} />;
    ~~~~~~
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
           ~
!!! error TS1003: Identifier expected.
            ~~~~
!!! error TS2304: Cannot find name 'data'.
                ~
!!! error TS1005: ';' expected.
                       
!!! error TS1161: Unterminated regular expression literal.