mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
402 B
Plaintext
15 lines
402 B
Plaintext
// 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 hash: Int {
|
|
return 42
|
|
}
|
|
}
|