Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/project/declarationspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const someOtherVar = 123;
与此相似,一些用 `var` 声明的变量,也只能在变量声明空间使用,不能用作类型注解。

```js
const foo = 123;
var foo = 123;
let bar: foo; // ERROR: "cannot find name 'foo'"
```

Expand Down