Skip to content

Commit b90ce71

Browse files
committed
Fix whitespace
1 parent ce271fa commit b90ce71

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ ERROR(requires_not_suitable_archetype,none,
16881688
(TypeLoc))
16891689
WARNING(requires_no_same_type_archetype,none,
16901690
"neither type in same-type constraint (%0 or %1) refers to a "
1691-
"generic parameter or associated type",
1691+
"generic parameter or associated type",
16921692
(Type, Type))
16931693

16941694
ERROR(requires_generic_params_made_equal,none,

test/Generics/same_type_constraints.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,5 +376,5 @@ func resultTypeSuppress<T: P1>() -> StructTakingP1<T> {
376376
typealias NotAnInt = Double
377377

378378
extension X11 where NotAnInt == Int { }
379-
// expected-warning@-1{{neither type in same-type constraint ('NotAnInt' (aka 'Double') or 'Int') refers to a generic parameter or associated type}}
379+
// expected-warning@-1{{neither type in same-type constraint ('NotAnInt' (aka 'Double') or 'Int') refers to a generic parameter or associated type}}
380380
// expected-error@-2{{generic signature requires types 'NotAnInt' (aka 'Double') and 'Int' to be the same}}

test/decl/typealias/protocol.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ extension P10 {
268268
typealias U = Float
269269
}
270270

271-
extension P10 where T == Int { } // expected-warning{{neither type in same-type constraint ('P10.T' (aka 'Int') or 'Int') refers to a generic parameter or associated type}}
271+
extension P10 where T == Int { } // expected-warning{{neither type in same-type constraint ('P10.T' (aka 'Int') or 'Int') refers to a generic parameter or associated type}}
272272

273273
extension P10 where A == X<T> { }
274274

@@ -277,4 +277,4 @@ extension P10 where A == X<U> { } // expected-error{{use of undeclared type 'U'}
277277
extension P10 where A == X<Self.U> { }
278278

279279
extension P10 where V == Int { } // expected-warning 3{{'V' is deprecated: just use Int, silly}}
280-
// expected-warning@-1{{neither type in same-type constraint ('P10.V' (aka 'Int') or 'Int') refers to a generic parameter or associated type}}
280+
// expected-warning@-1{{neither type in same-type constraint ('P10.V' (aka 'Int') or 'Int') refers to a generic parameter or associated type}}

0 commit comments

Comments
 (0)