From 1c062064b45f26e89832f58b41e074a05316dafb Mon Sep 17 00:00:00 2001 From: mertcandav Date: Mon, 23 Sep 2024 20:27:56 +0300 Subject: [PATCH] parser: fix unhandled left operand error of assign statement may cause crash --- std/jule/parser/scope.jule | 3 +++ 1 file changed, 3 insertions(+) diff --git a/std/jule/parser/scope.jule b/std/jule/parser/scope.jule index 5e5152984..03e7542a4 100644 --- a/std/jule/parser/scope.jule +++ b/std/jule/parser/scope.jule @@ -1011,6 +1011,9 @@ impl scopeParser { } mut l := self.buildAssignL(part) + if l.Expr == nil { + ret false + } l.Mutable = isMut l.Reference = isRef assign.Left = append(assign.Left, l)