[test] Test new fix-it for NSObject.hashValue overrides

This commit is contained in:
Karoy Lorentey
2019-01-23 19:44:01 -08:00
parent df8eba480e
commit 6af814d76c
4 changed files with 35 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
// RUN: %empty-directory(%t)
// RUN: not %target-swift-frontend -typecheck -update-code -primary-file %s -emit-migrated-file-path %t/fixit-NSObject-hashValue.result
// RUN: diff -u %s.expected %t/fixit-NSObject-hashValue.result
// RUN: %target-swift-frontend -typecheck %s.expected
// REQUIRES: objc_interop
import ObjectiveC
class MyClass: NSObject {
override var hashValue: Int {
return 42
}
}