We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca117dd commit dbc0422Copy full SHA for dbc0422
lib/Sema/TypeCheckGeneric.cpp
@@ -191,6 +191,9 @@ Type CompleteGenericTypeResolver::resolveDependentMemberType(
191
// Otherwise, the nested type comes from a concrete tpye. Substitute the
192
// base type into it.
193
auto concrete = ref->getBoundDecl();
194
+ TC.validateDeclForNameLookup(concrete);
195
+ if (!concrete->hasInterfaceType())
196
+ return ErrorType::get(TC.Context);
197
if (baseTy->isTypeParameter()) {
198
if (auto proto =
199
concrete->getDeclContext()
0 commit comments