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 fd8cfea commit a100e8eCopy full SHA for a100e8e
test/Constraints/closures.swift
@@ -366,7 +366,8 @@ func rdar20868864(_ s: String) {
366
func r22058555() {
367
var firstChar: UInt8 = 0
368
"abc".withCString { chars in
369
- firstChar = chars[0] // expected-error {{cannot assign value of type 'Int8' to type 'UInt8'}}
+ // 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}}
371
}
372
373
0 commit comments