mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #24808 from xedin/cleaner-foreach
[TypeChecker] Simplify for ... in ... type checking
This commit is contained in:
@@ -2200,6 +2200,8 @@ Type simplifyTypeImpl(ConstraintSystem &cs, Type type, Fn getFixedTypeFn) {
|
||||
// FIXME: It's kind of weird in general that we have to look
|
||||
// through lvalue, inout and IUO types here
|
||||
Type lookupBaseType = newBase->getWithoutSpecifierType();
|
||||
if (auto selfType = lookupBaseType->getAs<DynamicSelfType>())
|
||||
lookupBaseType = selfType->getSelfType();
|
||||
|
||||
if (lookupBaseType->mayHaveMembers() ||
|
||||
lookupBaseType->is<DynamicSelfType>()) {
|
||||
|
||||
Reference in New Issue
Block a user