We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3787e commit b43341eCopy full SHA for b43341e
validation-test/stdlib/NewArray.swift.gyb
@@ -428,8 +428,8 @@ func testIsEmptyFirstLast${A}() {
428
print(${A}<Int>().isEmpty) // CHECK-NEXT: true
429
print(${A}(42...42).isEmpty) // CHECK-NEXT: false
430
431
- print("<\(${A}(3...42).first!)>") // CHECK-NEXT: <3>
432
- print("<\(${A}(3...42).last!)>") // CHECK-NEXT: <42>
+ print("<\(${A}(3..<43).first!)>") // CHECK-NEXT: <3>
+ print("<\(${A}(3..<43).last!)>") // CHECK-NEXT: <42>
433
434
print("<\(${A}<Int>().first)>") // CHECK-NEXT: nil
435
print("<\(${A}<Int>().last)>") // CHECK-NEXT: nil
0 commit comments