mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implicitly look through UncheckedOptional<T> when it's the
base of a member access or subscript. Swift SVN r12345
This commit is contained in:
@@ -1510,6 +1510,11 @@ public:
|
||||
void addOverloadSet(Type boundType, ArrayRef<OverloadChoice> choices,
|
||||
ConstraintLocator *locator);
|
||||
|
||||
/// If the given type is UncheckedOptional<T>, and we're in a context
|
||||
/// that should transparently look through UncheckedOptional types,
|
||||
/// return T.
|
||||
Type lookThroughUncheckedOptionalType(Type type);
|
||||
|
||||
/// \brief Retrieve the allocator used by this constraint system.
|
||||
llvm::BumpPtrAllocator &getAllocator() { return Allocator; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user