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 c03d762 commit ebc03a1Copy full SHA for ebc03a1
lib/Sema/CSBindings.cpp
@@ -931,15 +931,7 @@ bool ConstraintSystem::PotentialBindings::infer(
931
932
case ConstraintKind::ConformsTo:
933
case ConstraintKind::SelfObjectOfProtocol:
934
- // Swift 3 allowed the use of default types for normal conformances
935
- // to expressible-by-literal protocols.
936
- if (cs.getASTContext().LangOpts.EffectiveLanguageVersion[0] >= 4)
937
- return false;
938
-
939
- if (!constraint->getSecondType()->is<ProtocolType>())
940
941
942
- LLVM_FALLTHROUGH;
+ return false;
943
944
case ConstraintKind::LiteralConformsTo: {
945
// Record constraint where protocol requirement originated
0 commit comments