mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
CF <-> NS bridging is a subtype. Fixes rdar://problem/18297881
Swift SVN r21922
This commit is contained in:
@@ -1443,7 +1443,8 @@ ConstraintSystem::matchTypes(Type type1, Type type2, TypeMatchKind kind,
|
||||
}
|
||||
|
||||
// Check for CF <-> ObjectiveC bridging.
|
||||
if (desugar1->getKind() == TypeKind::Class) {
|
||||
if (desugar1->getKind() == TypeKind::Class &&
|
||||
kind >= TypeMatchKind::Subtype) {
|
||||
auto class1 = cast<ClassDecl>(nominal1->getDecl());
|
||||
auto class2 = cast<ClassDecl>(nominal2->getDecl());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user