authorgravatar for 11367844+lino-levan@users.noreply.github.comLino Le Van <11367844+lino-levan@users.noreply.github.com> 2024-06-02 20:42:30-07:00
committergravatar for 11367844+lino-levan@users.noreply.github.comLino Le Van <11367844+lino-levan@users.noreply.github.com> 2024-06-02 20:42:30-07:00
logb081bdf665c0a29b07b59f4c64a9cb85bcfef98a
treef3a11725c0c4df24c9d1359be3c6d91ed5a74c72
parent600096d81a6dea2e94abe45ad8c887d615f8bb7d

fix: issue with sema ignoring rhs


1 files changed, 1 insertions(+), 1 deletions(-)

src/core/Sema.zig+1-1
......@@ -326,7 +326,7 @@ fn analyzeCodeInner(s: *Sema, in: Teg.Inst.Index) Error!Air.Inst.Ref {
326326 const ty = try s.binTypeResolution(in, op, left_ty, right_ty);
327327
328328 const left = try s.coerceRef(in.op(.lhs), lhs, ty);
329 const right = try s.coerceRef(in.op(.rhs), lhs, ty);
329 const right = try s.coerceRef(in.op(.rhs), rhs, ty);
330330
331331 if (left.kind == .value and right.kind == .value) {
332332 return (try s.comptimeBin(