Skip to content

Commit 16a4031

Browse files
committed
[tests] Update tests with modified diagnostics
1 parent 95197c2 commit 16a4031

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/Constraints/diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ func badTypes() {
11371137
// rdar://34357545
11381138
func unresolvedTypeExistential() -> Bool {
11391139
return (Int.self==_{})
1140-
// expected-error@-1 {{'_' can only appear in a pattern or on the left side of an assignment}}
1140+
// expected-error@-1 {{type of expression is ambiguous without more context}}
11411141
}
11421142

11431143
do {

test/expr/expressions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ func r20802757(_ z: inout Int = &g20802757) { // expected-error {{cannot provide
865865
print(z)
866866
}
867867

868-
_ = _.foo // expected-error {{'_' can only appear in a pattern or on the left side of an assignment}}
868+
_ = _.foo // expected-error {{could not infer type for placeholder}}
869869

870870
// <rdar://problem/22211854> wrong arg list crashing sourcekit
871871
func r22211854() {

validation-test/Sema/SwiftUI/sr14213.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import SwiftUI
88
struct Experiment: View {
99
var body: some View {
1010
HStack { // expected-error {{generic parameter 'Content' could not be inferred}} expected-note {{explicitly specify the generic arguments to fix this issue}}emacs
11-
Slider(value: <#T##Binding<BinaryFloatingPoint>#>, in: <#T##ClosedRange<BinaryFloatingPoint>#>, label: <#T##() -> _#>) // expected-error 3 {{editor placeholder in source file}} expected-error {{expected type for function result}}
11+
Slider(value: <#T##Binding<BinaryFloatingPoint>#>, in: <#T##ClosedRange<BinaryFloatingPoint>#>, label: <#T##() -> _#>) // expected-error 3 {{editor placeholder in source file}}
1212
// expected-error@-1 {{protocol 'BinaryFloatingPoint' as a type cannot conform to 'Comparable'}}
1313
// expected-note@-2 {{only concrete types such as structs, enums and classes can conform to protocols}}
1414
}

0 commit comments

Comments
 (0)