File: sourceMapValidationStatements.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (89 lines) | stat: -rw-r--r-- 2,023 bytes parent folder | download | duplicates (7)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
tests/cases/compiler/sourceMapValidationStatements.ts(43,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.


==== tests/cases/compiler/sourceMapValidationStatements.ts (1 errors) ====
    function f() {
        var y;
        var x = 0;
        for (var i = 0; i < 10; i++) {
            x += i;
            x *= 0;
        }
        if (x > 17) {
            x /= 9;
        } else {
            x += 10;
            x++;
        }
        var a = [
            1,
            2,
            3
        ];
        var obj = {
            z: 1,
            q: "hello"
        };
        for (var j in a) {
            obj.z = a[j];
            var v = 10;
        }
        try {
            obj.q = "ohhh";
        } catch (e) {
            if (obj.z < 10) {
                obj.z = 12;
            } else {
                obj.q = "hmm";
            }
        }
        try {
            throw new Error();
        } catch (e1) {
            var b = e1;
        } finally {
            y = 70;
        }
        with (obj) {
        ~~~~~~~~~~
!!! error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
            i = 2;
            z = 10;
        }
        switch (obj.z) {
            case 0: {
                x++;
                break;
    
            }
            case 1: {
                x--;
                break;
    
            }
            default: {
                x *= 2;
                x = 50;
                break;
    
            }
        }
        while (x < 10) {
            x++;
        }
        do {
            x--;
        } while (x > 4)
        x = y;
        var z = (x == 1) ? x + 1 : x - 1;
        (x == 1) ? x + 1 : x - 1;
        x === 1;
        x = z = 40;
        eval("y");
        return;
    }
    var b = function () {
        var x = 10;
        x = x + 1;
    };
    f();