Skip to content

Commit 1ae370a

Browse files
committed
IDE: Another fix for isMemberDeclAppliedInternal()
We don't support local types in generic context yet, but this avoids an assertion concerning type parameters.
1 parent dbfe61a commit 1ae370a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/IDETypeCheckingRequests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static bool isMemberDeclAppliedInternal(const DeclContext *DC, Type BaseTy,
172172
// outer generic parameters.
173173
auto *module = DC->getParentModule();
174174
auto substMap = BaseTy->getContextSubstitutionMap(
175-
module, VD->getDeclContext());
175+
module, VD->getDeclContext(), genericDecl->getGenericEnvironment());
176176

177177
// The innermost generic parameters are mapped to error types.
178178
unsigned innerDepth = genericSig.getGenericParams().back()->getDepth();

0 commit comments

Comments
 (0)