Skip to content

Commit a100e8e

Browse files
author
Dave Abrahams
committed
[stdlib] Adjust test for https://bugs.swift.org/browse/SR-4836
1 parent fd8cfea commit a100e8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Constraints/closures.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ func rdar20868864(_ s: String) {
366366
func r22058555() {
367367
var firstChar: UInt8 = 0
368368
"abc".withCString { chars in
369-
firstChar = chars[0] // expected-error {{cannot assign value of type 'Int8' to type 'UInt8'}}
369+
// FIXME https://bugs.swift.org/browse/SR-4836: was {{cannot assign value of type 'Int8' to type 'UInt8'}}
370+
firstChar = chars[0] // expected-error {{cannot subscript a value of incorrect or ambiguous type}}
370371
}
371372
}
372373

0 commit comments

Comments
 (0)