mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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?.
|
||||
|
||||
Reference in New Issue
Block a user