You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the way these diagnostics were added seems to have been through score hacking
and I haven't been able to get the behavior back since introducing the
copyable type constraint for generics. I've logged restoring this as a TODO
to take care of sometime later when I have more time.
// expected-error@-1 {{type '() -> Int' cannot conform to 'Hashable'}} expected-note@-1 {{only concrete types such as structs, enums and classes can conform to protocols}}
29
+
// FIXME: the diagnostics below ideally should have been emitted (rdar://106241733)
30
+
// error@-1 {{type '() -> Int' cannot conform to 'Hashable'}} note@-1 {{only concrete types such as structs, enums and classes can conform to protocols}}
0 commit comments