Skip to content

Commit 8c56805

Browse files
Added FIXME about inheriting from a nested type
1 parent 41e4e9b commit 8c56805

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)