Use @unchecked optionals for member references into AnyObject/AnyClass.

This eliminates the need for a number of !'s when dealing with
Objective-C APIs. Now with actual executable behavior!


Swift SVN r13483
This commit is contained in:
Doug Gregor
2014-02-05 07:58:18 +00:00
parent 29af221df9
commit 04475c6a85
6 changed files with 54 additions and 23 deletions

View File

@@ -1490,7 +1490,7 @@ public:
return;
ExprType = ExprType->getRValueType();
Type Unwrapped = ExprType->getOptionalObjectType();
Type Unwrapped = ExprType->getAnyOptionalObjectType();
if (!Unwrapped)
return;
// FIXME: consider types convertible to T?.