Skip to content

Commit

Permalink
parser: fix unhandled left operand error of assign statement may caus…
Browse files Browse the repository at this point in the history
…e crash
  • Loading branch information
mertcandav committed Sep 23, 2024
1 parent 7e0a6f8 commit 1c06206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions std/jule/parser/scope.jule
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1c06206

Please sign in to comment.