Skip to content

Commit a08f421

Browse files
fix failing tests
1 parent ff26a06 commit a08f421

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

validation-test/Sema/type_checker_crashers_fixed/rdar27830834.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
var d = [String:String]()
44
_ = "\(d.map{ [$0 : $0] })"
5-
// expected-error@-1 {{type 'Dictionary<String, String>.Element' (aka '(key: String, value: String)') cannot conform to 'Hashable'; only struct/enum/class types can conform to protocols}}
5+
// expected-error@-1 {{type 'Dictionary<String, String>.Element' (aka '(key: String, value: String)') cannot conform to 'Hashable'; only concrete types such as structs, enums and classes can conform to protocols}}
66
// expected-note@-2 {{required by generic struct 'Dictionary' where 'Key' = 'Dictionary<String, String>.Element' (aka '(key: String, value: String)')}}

validation-test/compiler_crashers_2_fixed/0196-rdar48937223.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ func fn<T, U: P>(_ arg1: T, arg2: (T) -> U) {}
66
// expected-note@-1 {{required by global function 'fn(_:arg2:)' where 'U' = '()'}}
77

88
func test(str: String) {
9-
fn(str) { arg in // expected-error {{type '()' cannot conform to 'P'; only struct/enum/class types can conform to protocols}}
9+
fn(str) { arg in // expected-error {{type '()' cannot conform to 'P'; only concrete types such as structs, enums and classes can conform to protocols}}
1010
<#FOO#> // expected-error {{editor placeholder in source file}}
1111
}
1212
}

0 commit comments

Comments
 (0)