mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
373 B
Swift
14 lines
373 B
Swift
// RUN: %target-typecheck-verify-swift -import-objc-header %S/Inputs/issue-56636.h
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
extension Letter: Strideable {
|
|
public func distance(to other: Self) -> RawValue.Stride {
|
|
self.rawValue.distance( to: other.rawValue )
|
|
}
|
|
|
|
public func advanced(by n: RawValue.Stride) -> Self {
|
|
Self( rawValue: self.rawValue.advanced( by: n ) )!
|
|
}
|
|
}
|