Skip to content

Commit

Permalink
sema: add comptime conversion support for constant-rune to string cas…
Browse files Browse the repository at this point in the history
…ting expressions
  • Loading branch information
mertcandav committed Jul 24, 2024
1 parent a40d6f6 commit 39f2706
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions std/jule/sema/eval.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,9 @@ impl Eval {
| prim.IsU8():
d.Constant = Const.NewStr(str(byte(c.AsU64())))
d.Model = d.Constant
| prim.IsI32():
d.Constant = Const.NewStr(str(rune(c.AsI64())))
d.Model = d.Constant
}
}
ret
Expand Down

0 comments on commit 39f2706

Please sign in to comment.