diff options
Diffstat (limited to 'compiler/parser.nim')
-rwxr-xr-x | compiler/parser.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index 361c297fb..e3bf3a748 100755 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -1352,7 +1352,7 @@ proc complexOrSimpleStmt(p: var TParser): PNode = of tkConverter: result = parseRoutine(p, nkConverterDef) of tkType: result = parseSection(p, nkTypeSection, parseTypeDef) of tkConst: result = parseSection(p, nkConstSection, parseConstant) - of tkLet: result = parseSection(p, nkLetSection, parseConstant) + of tkLet: result = parseSection(p, nkLetSection, parseVariable) of tkWhen: result = parseIfOrWhen(p, nkWhenStmt) of tkVar: result = parseSection(p, nkVarSection, parseVariable) of tkBind: result = parseBind(p) |