Resolve associated types with type anchors

This commit is contained in:
Lukas Wirth 2021-04-01 21:52:07 +02:00
parent 444f6caaba
commit 9fe10a9606
3 changed files with 42 additions and 12 deletions

View file

@ -146,7 +146,7 @@ impl<'a> TyLoweringContext<'a> {
self.lower_ty_ext(type_ref).0
}
fn lower_ty_ext(&self, type_ref: &TypeRef) -> (Ty, Option<TypeNs>) {
pub fn lower_ty_ext(&self, type_ref: &TypeRef) -> (Ty, Option<TypeNs>) {
let mut res = None;
let ty = match type_ref {
TypeRef::Never => TyKind::Never.intern(&Interner),