mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Code complete expressions that type check to ArchetypeTypes
This required fixing a bug in lookupVisibleDecls(), which did not return any results for ArchetypeTypes. Swift SVN r6310
This commit is contained in:
@@ -539,7 +539,9 @@ public:
|
||||
}
|
||||
}
|
||||
if (!Done) {
|
||||
lookupVisibleDecls(*this, ExprType);
|
||||
// Use a canonical type here to ensure that we get ArchetypeTypes instead
|
||||
// of IdentifierTypes.
|
||||
lookupVisibleDecls(*this, ExprType->getCanonicalType());
|
||||
}
|
||||
// Add the special qualified keyword 'metatype' so that, for example,
|
||||
// 'Int.metatype' can be completed.
|
||||
|
||||
Reference in New Issue
Block a user