Skip to content

Commit 5281ffb

Browse files
DougGregorairspeedswift
authored andcommitted
Fix test for IndexDistance removal
1 parent edf53b2 commit 5281ffb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/core/Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public protocol Collection: Sequence where SubSequence: Collection {
358358
/// "past the end" position that's not valid for use as a subscript
359359
/// argument.
360360
associatedtype Index : Comparable
361-
361+
362362
/// The position of the first element in a nonempty collection.
363363
///
364364
/// If the collection is empty, `startIndex` is equal to `endIndex`.

test/Constraints/diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func rdar20142523() {
161161
// <rdar://problem/21080030> Bad diagnostic for invalid method call in boolean expression: (_, ExpressibleByIntegerLiteral)' is not convertible to 'ExpressibleByIntegerLiteral
162162
func rdar21080030() {
163163
var s = "Hello"
164-
if s.count() == 0 {} // expected-error{{cannot call value of non-function type 'String.IndexDistance' (aka 'Int')}}{{13-15=}}
164+
if s.count() == 0 {} // expected-error{{cannot call value of non-function type 'Int'}}{{13-15=}}
165165
}
166166

167167
// <rdar://problem/21248136> QoI: problem with return type inference mis-diagnosed as invalid arguments

0 commit comments

Comments
 (0)