Skip to content

Commit 50f8bd5

Browse files
committed
Treat let as var
1 parent 2886c03 commit 50f8bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/syntax/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2405,7 +2405,7 @@ func (p *parser) stmtOrNil() Stmt {
24052405
}
24062406

24072407
switch p.tok {
2408-
case _Var:
2408+
case _Var, _Let:
24092409
return p.declStmt(p.varDecl)
24102410

24112411
case _Const:

0 commit comments

Comments
 (0)