File: numericLiteralsWithTrailingDecimalPoints01.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 (33 lines) | stat: -rw-r--r-- 1,235 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
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(3,3): error TS1005: ';' expected.
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,15): error TS1005: ',' expected.
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,23): error TS1005: '=' expected.
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,24): error TS1109: Expression expected.


==== tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts (4 errors) ====
    1..toString();
    1.0.toString();
    1.toString();
      ~~~~~~~~
!!! error TS1005: ';' expected.
    1.+2.0 + 3. ;
    
    // Preserve whitespace where important for JS compatibility
    var i: number = 1;
    var test1 = i.toString();  
    var test2 = 2.toString();
                  ~~~~~~~~
!!! error TS1005: ',' expected.
                          ~
!!! error TS1005: '=' expected.
                           ~
!!! error TS1109: Expression expected.
    var test3 = 3 .toString();
    var test4 = 3    .toString();
    var test5 = 3	.toString(); 
    var test6 = 3.['toString']();
    var test7 = 3
    .toString();
    var test8 = new Number(4).toString();
    var test9 = 3. + 3.