Skip to content

Commit

Permalink
sema: fix evaluation of binary expressions for comptimeTypeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 8, 2025
1 parent 8b77fc0 commit cfe3493
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion std/jule/sema/eval.jule
Original file line number Diff line number Diff line change
Expand Up @@ -4405,7 +4405,9 @@ impl binaryEval {
match {
| v == nil
| self.l.Model == nil
| self.r.Model == nil:
| self.r.Model == nil
| self.l.Type.comptimeTypeInfo() != nil
| self.r.Type.comptimeTypeInfo() != nil:
ret
| !self.l.IsConst()
| !self.r.IsConst():
Expand Down

0 comments on commit cfe3493

Please sign in to comment.