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
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));
}