Skip to content

Commit 931f47d

Browse files
committed
[NCGenerics] require associated type inference when rebuilding module
1 parent ac91b7a commit 931f47d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Frontend/ModuleInterfaceLoader.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,9 +1641,12 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
16411641
GenericArgs.push_back("-disable-availability-checking");
16421642
}
16431643

1644-
if (bool(requireNCGenerics))
1644+
if (bool(requireNCGenerics)) {
16451645
genericSubInvocation.getLangOptions()
16461646
.enableFeature(Feature::NoncopyableGenerics);
1647+
genericSubInvocation.getLangOptions()
1648+
.EnableExperimentalAssociatedTypeInference = true;
1649+
}
16471650

16481651
// Pass-down the obfuscators so we can get the serialized search paths properly.
16491652
genericSubInvocation.setSerializedPathObfuscator(

0 commit comments

Comments
 (0)