mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Permit ! to do the AnyObject downcast magic through one level of
optional type. Swift SVN r15306
This commit is contained in:
@@ -1127,7 +1127,8 @@ namespace {
|
||||
// is of class type.
|
||||
Constraint::createConjunction(CS, downcastConstraints, locator)
|
||||
};
|
||||
CS.addConstraint(Constraint::createDisjunction(CS, constraints, locator));
|
||||
CS.addConstraint(Constraint::createDisjunction(CS, constraints, locator,
|
||||
RememberChoice));
|
||||
|
||||
// The result is of type T.
|
||||
return valueTy;
|
||||
|
||||
Reference in New Issue
Block a user