mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix a silly gap in my fix for rdar://problem/31104415, where imported types that gain conformances through their overlays were still getting errors. Fixes SR-4820 / rdar://problem/32134724.
10 lines
389 B
Swift
10 lines
389 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 3
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
extension NSRange : Hashable { // expected-warning{{conformance of '_NSRange' to protocol 'Hashable' was already stated in the type's module 'Foundation'}}
|
|
var hashValue: Int { return 0 } // expected-note{{var 'hashValue' will not be used to satisfy the conformance to 'Hashable'}}
|
|
}
|