Skip to content

Commit 46092af

Browse files
[tests] Adjusting tests under type/opaque
1 parent 449ab73 commit 46092af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2811,7 +2811,7 @@ bool ConstraintSystem::diagnoseAmbiguityWithFixes(
28112811

28122812
if (fixes.size() == 1) {
28132813
// Attempt to disambiguite in cases where all the solutions
2814-
// produces the same fixes for diferent generic arguments e.g.
2814+
// produces the same fixes for different generic arguments e.g.
28152815
// func f<T>(_: T, _: T) {}
28162816
// f(Int(1), Float(1))
28172817
//

test/type/opaque.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ func associatedTypeIdentity() {
270270

271271
sameType(cr, c.r_out())
272272
sameType(dr, d.r_out())
273-
sameType(cr, dr) // expected-error{{}} expected-note {{}}
273+
sameType(cr, dr) // expected-error {{cannot convert value of type '(some opaque.R).S' (associated type of protocol 'R') to expected argument type '(some opaque.R).S' (associated type of protocol 'R')}}
274274
sameType(gary(candace()).r_out(), gary(candace()).r_out())
275275
sameType(gary(doug()).r_out(), gary(doug()).r_out())
276-
sameType(gary(doug()).r_out(), gary(candace()).r_out()) // expected-error{{}} expected-note {{}}
276+
sameType(gary(doug()).r_out(), gary(candace()).r_out()) // expected-error {{cannot convert value of type 'some R' (result of 'candace()') to expected argument type 'some R' (result of 'doug()')}}
277277
}
278278

279279
func redeclaration() -> some P { return 0 } // expected-note 2{{previously declared}}

0 commit comments

Comments
 (0)