Move store TypeRef of type based path in PathKind

This commit is contained in:
uHOOCCOOHu 2019-09-15 19:48:24 +08:00
parent 4926bed426
commit de9670fe45
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
4 changed files with 11 additions and 21 deletions

View file

@ -190,7 +190,7 @@ impl Resolver {
db: &impl HirDatabase,
path: &'p Path,
) -> Option<ResolveValueResult<'p>> {
if let Some(type_ref) = &path.type_ref {
if let PathKind::Type(type_ref) = &path.kind {
return Some(ResolveValueResult::TypeRef(type_ref));
}