• 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": "a",
12            "typeAnnotation": {
13              "type": "TSNeverKeyword",
14              "loc": {
15                "start": {
16                  "line": 17,
17                  "column": 8
18                },
19                "end": {
20                  "line": 17,
21                  "column": 13
22                }
23              }
24            },
25            "decorators": [],
26            "loc": {
27              "start": {
28                "line": 17,
29                "column": 5
30              },
31              "end": {
32                "line": 17,
33                "column": 6
34              }
35            }
36          },
37          "init": {
38            "type": "NullLiteral",
39            "value": null,
40            "loc": {
41              "start": {
42                "line": 17,
43                "column": 16
44              },
45              "end": {
46                "line": 17,
47                "column": 20
48              }
49            }
50          },
51          "loc": {
52            "start": {
53              "line": 17,
54              "column": 5
55            },
56            "end": {
57              "line": 17,
58              "column": 20
59            }
60          }
61        }
62      ],
63      "kind": "let",
64      "loc": {
65        "start": {
66          "line": 17,
67          "column": 1
68        },
69        "end": {
70          "line": 17,
71          "column": 21
72        }
73      }
74    }
75  ],
76  "loc": {
77    "start": {
78      "line": 1,
79      "column": 1
80    },
81    "end": {
82      "line": 18,
83      "column": 1
84    }
85  }
86}
87TypeError: Type 'null' is not assignable to type 'never'. [assignment_never.ts:17:5]
88