Skip to content

Commit

Permalink
sema: fix type compatibility checking of unary operator eval
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 27, 2024
1 parent 528f294 commit a2520b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions std/jule/sema/eval.jule
Original file line number Diff line number Diff line change
Expand Up @@ -3398,6 +3398,9 @@ impl UnaryEval {
self.d = nil
ret
}
|:
self.d = nil
ret
}

if self.d.is_const() {
Expand Down Expand Up @@ -3433,6 +3436,9 @@ impl UnaryEval {
self.d = nil
ret
}
|:
self.d = nil
ret
}

if self.d.is_const() {
Expand Down Expand Up @@ -3468,6 +3474,9 @@ impl UnaryEval {
self.d = nil
ret
}
|:
self.d = nil
ret
}

if self.d.is_const() {
Expand Down

0 comments on commit a2520b1

Please sign in to comment.