Add a Fixit to Rewrite NSObject.hash(into:) Overrides

This commit is contained in:
Robert Widmann
2021-02-08 12:17:16 -08:00
parent 58110fe2df
commit 2fca132152
4 changed files with 7 additions and 5 deletions

View File

@@ -12,6 +12,6 @@ class Foo: NSObject {
}
override func hash(into hasher: inout Hasher) {
// expected-error@-1 {{'NSObject.hash(into:)' is not overridable; did you mean to override 'NSObject.hash'?}}
// expected-error@-1 {{'NSObject.hash(into:)' is not overridable; did you mean to override 'NSObject.hash'?}} {{12-16=var}} {{21-48=: Int}}
}
}