• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "VariableDeclaration",
6      "declarations": [
7        {
8          "type": "VariableDeclarator",
9          "id": {
10            "type": "Identifier",
11            "name": "z",
12            "decorators": [],
13            "loc": {
14              "start": {
15                "line": 16,
16                "column": 7
17              },
18              "end": {
19                "line": 16,
20                "column": 8
21              }
22            }
23          },
24          "init": {
25            "type": "NullLiteral",
26            "value": null,
27            "loc": {
28              "start": {
29                "line": 16,
30                "column": 11
31              },
32              "end": {
33                "line": 16,
34                "column": 15
35              }
36            }
37          },
38          "loc": {
39            "start": {
40              "line": 16,
41              "column": 7
42            },
43            "end": {
44              "line": 16,
45              "column": 15
46            }
47          }
48        }
49      ],
50      "kind": "const",
51      "loc": {
52        "start": {
53          "line": 16,
54          "column": 1
55        },
56        "end": {
57          "line": 16,
58          "column": 15
59        }
60      }
61    }
62  ],
63  "loc": {
64    "start": {
65      "line": 1,
66      "column": 1
67    },
68    "end": {
69      "line": 17,
70      "column": 1
71    }
72  }
73}
74TypeError: Cannot infer type for variable 'z'. [test_variable_declaration_null.ts:16:7]
75