Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lookupRefined: check for AliasingBounds instead of TypeBounds with eq…
…ual bounds It turns out that the problematic cases fixed in the previous commit only occurs because we create type aliases with info of type MatchAlias instead of TypeAlias if their rhs is an applied match type (Namer#TypeDefCompleter#typeSig calls `toBounds` on the rhs which does `if (self.isMatch) MatchAlias(self)`). I'm not sure if there is a good reason for that (and if so, do we need to be careful to avoid loops when dealiasing MatchAlias?) or if we should change the logic in Namer to return a TypeAlias instead.
- Loading branch information