Resolve impl generic params

This commit is contained in:
Florian Diebold 2019-02-16 21:21:36 +01:00
parent da7056245d
commit 2af067b391

View file

@ -106,7 +106,9 @@ impl ImplBlock {
pub fn resolver(&self, db: &impl HirDatabase) -> Resolver {
let r = self.module().resolver(db);
// TODO: add generics
// add generic params, if present
let p = self.generic_params(db);
let r = if !p.params.is_empty() { r.push_generic_params_scope(p) } else { r };
let r = r.push_impl_block_scope(self.clone());
r
}