typeck cleanup

This commit is contained in:
nora 2023-08-03 14:40:25 +02:00
parent 73a369730b
commit ba3a199249
9 changed files with 345 additions and 319 deletions

View file

@ -426,8 +426,9 @@ function lowerExpr(
lowerExpr(fcx, instrs, expr.rhs);
const { lhs } = expr;
switch (lhs.kind) {
case "ident": {
const res = lhs.value.res;
case "ident":
case "path": {
const res = lhs.kind === "path" ? lhs.res : lhs.value.res;
switch (res.kind) {
case "local": {