Skip to content

Commit

Permalink
Sema: rewrite peer type resolution
Browse files Browse the repository at this point in the history
The existing logic for peer type resolution was quite convoluted and
buggy. This rewrite makes it much more resilient, readable, and
extensible. The algorithm works by first iterating over the types to
select a "strategy", then applying that strategy, possibly applying peer
resolution recursively.

Several new tests have been added to cover cases which the old logic did
not correctly handle.

Resolves: ziglang#15138
Resolves: ziglang#15644
Resolves: ziglang#15693
Resolves: ziglang#15709
Resolves: ziglang#15752
  • Loading branch information
mlugg committed May 21, 2023
1 parent 7621e56 commit b5e2760
Show file tree
Hide file tree
Showing 6 changed files with 2,100 additions and 561 deletions.
Loading

0 comments on commit b5e2760

Please sign in to comment.