Skip to content

Commit

Permalink
sema: fix unary caret operator type safety
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 28, 2024
1 parent 98404d2 commit 8186ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/jule/sema/eval.jule
Original file line number Diff line number Diff line change
Expand Up @@ -3465,7 +3465,7 @@ impl UnaryEval {
self.d = nil
ret
| self.d.kind.prim() != nil:
if !types::is_num(self.d.kind.to_str()) {
if !types::is_int(self.d.kind.to_str()) {
self.d = nil
ret
}
Expand Down

0 comments on commit 8186ff2

Please sign in to comment.