Skip to content

Commit a09058f

Browse files
committed
Merge pull request #2189 from manavgabhawala/circular-class-inheritance
Added FIXME about inheriting from a nested type
2 parents 4fd8418 + 8c56805 commit a09058f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,7 @@ static Type resolveIdentTypeComponent(
11401140

11411141
// Don't resolve the nested type if the parent is equal to the decl context
11421142
// we are looking in.
1143+
// FIXME: Should be fixed to allow inheriting from a nested type some day
11431144
auto selfTypeBase = DC->getSelfTypeInContext().getPointer();
11441145
if (DC->getAsClassOrClassExtensionContext() &&
11451146
selfTypeBase && selfTypeBase->isEqual(parentTy)) {

0 commit comments

Comments
 (0)