mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
typeck cleanup
This commit is contained in:
parent
73a369730b
commit
ba3a199249
9 changed files with 345 additions and 319 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue