mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a Fixit to Rewrite NSObject.hash(into:) Overrides
This commit is contained in:
@@ -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}}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user