Skip to content

Commit c711e7b

Browse files
authored
Merge pull request #61990 from apple/fix-marker-condconf-diag
Fix diagnostics message for conditional conformance with marker protocol
2 parents 3dad053 + ed164aa commit c711e7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6447,7 +6447,7 @@ ERROR(marker_protocol_cast,none,
64476447
"marker protocol %0 cannot be used in a conditional cast", (DeclName))
64486448
ERROR(marker_protocol_conditional_conformance,none,
64496449
"conditional conformance to non-marker protocol %0 cannot depend on "
6450-
"conformance of %1 to non-marker protocol %2",
6450+
"conformance of %1 to marker protocol %2",
64516451
(Identifier, Type, Identifier))
64526452

64536453
//------------------------------------------------------------------------------

test/attr/attr_marker_protocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ extension Array: P9 where Element: P9 { }
6666
protocol P10 { }
6767

6868
extension Array: P10 where Element: P10, Element: P8 { }
69-
// expected-error@-1{{conditional conformance to non-marker protocol 'P10' cannot depend on conformance of 'Element' to non-marker protocol 'P8'}}
69+
// expected-error@-1{{conditional conformance to non-marker protocol 'P10' cannot depend on conformance of 'Element' to marker protocol 'P8'}}

0 commit comments

Comments
 (0)