Skip to content

Commit 4fc92f9

Browse files
authored
Spelling test type (#58575)
* spelling: inconsistent Signed-off-by: Josh Soref <[email protected]> * spelling: statement Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent 622e307 commit 4fc92f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/type/opaque.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func associatedTypeIdentity() {
274274
sameType(gary(candace()).r_out(), gary(candace()).r_out())
275275
sameType(gary(doug()).r_out(), gary(doug()).r_out())
276276
// TODO(diagnostics): This is not great but the problem comes from the way solver discovers and attempts bindings, if we could detect that
277-
// `(some R).S` from first reference to `gary()` in incosistent with the second one based on the parent type of `S` it would be much easier to diagnose.
277+
// `(some R).S` from first reference to `gary()` in inconsistent with the second one based on the parent type of `S` it would be much easier to diagnose.
278278
sameType(gary(doug()).r_out(), gary(candace()).r_out())
279279
// expected-error@-1:12 {{conflicting arguments to generic parameter 'T' ('some R' (result type of 'doug') vs. 'some R' (result type of 'candace'))}}
280280
// expected-error@-2:34 {{conflicting arguments to generic parameter 'T' ('some R' (result type of 'doug') vs. 'some R' (result type of 'candace'))}}

test/type/opaque_return_structural.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func funcToAnyOpaqueCoercion() -> S1<some Any> {
6666
}
6767

6868
// TODO: We should give better error messages here. The opaque types have
69-
// underlying types 'Int' and 'String', but the return statments have underlying
69+
// underlying types 'Int' and 'String', but the return statements have underlying
7070
// types '(Int, Int)' and '(String, Int)'.
7171
func structuralMismatchedReturnTypes(_ x: Bool, _ y: Int, _ z: String) -> (some P, Int) { // expected-error{{do not have matching underlying types}}
7272
if x {

0 commit comments

Comments
 (0)