Skip to content

Commit 387156a

Browse files
authored
Merge pull request #71354 from slavapestov/check-type-witness-fix
Sema: Fix problems with checkTypeWitness()
2 parents 8db0af4 + 477e057 commit 387156a

12 files changed

+340
-162
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,11 +2905,6 @@ NOTE(default_associated_type_unsatisfied_superclass,none,
29052905
"default type %0 for associated type %1 (from protocol %2) "
29062906
"does not inherit from %3",
29072907
(Type, const AssociatedTypeDecl *, Type, Type))
2908-
NOTE(default_associated_type_tuple,none,
2909-
"default type %0 for associated type %1 (from protocol %2) "
2910-
"is unsuitable for tuple conformance; the associated type requirement "
2911-
"must be fulfilled by a type alias with underlying type %3",
2912-
(Type, const AssociatedTypeDecl *, Type, Type))
29132908
ERROR(associated_type_access,none,
29142909
"associated type in "
29152910
"%select{a private|a fileprivate|an internal|a package|a public|%error}0 protocol "
@@ -2945,11 +2940,6 @@ NOTE(associated_type_deduction_unsatisfied_superclass,none,
29452940
"candidate would match and infer %0 = %1 if %1 "
29462941
"inherited from %2",
29472942
(const AssociatedTypeDecl *, Type, Type))
2948-
NOTE(associated_type_deduction_tuple,none,
2949-
"cannot infer %0 = %1 in tuple conformance because "
2950-
"the associated type requirement must be fulfilled by a type alias with "
2951-
"underlying type %2",
2952-
(const AssociatedTypeDecl *, Type, Type))
29532943
NOTE(associated_type_witness_conform_impossible,none,
29542944
"candidate can not infer %0 = %1 because %1 "
29552945
"is not a nominal type and so can't conform to %2",

0 commit comments

Comments
 (0)