Implicitly look through UncheckedOptional<T> when it's the

base of a member access or subscript.

Swift SVN r12345
This commit is contained in:
John McCall
2014-01-15 21:00:59 +00:00
parent 1ccf23487e
commit 7be7c20a27
5 changed files with 190 additions and 25 deletions

View File

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