We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad1589 commit c11371bCopy full SHA for c11371b
test/ClangImporter/Inputs/issue-56636.h
@@ -0,0 +1,6 @@
1
+@import Foundation;
2
+
3
+typedef NS_ENUM( uint32_t, Letter ) {
4
+ a,
5
+ b,
6
+};
test/ClangImporter/issue-56636.swift
@@ -0,0 +1,13 @@
+// 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 {
7
+ self.rawValue.distance( to: other.rawValue )
8
+ }
9
10
+ public func advanced(by n: RawValue.Stride) -> Self {
11
+ Self( rawValue: self.rawValue.advanced( by: n ) )!
12
13
+}
0 commit comments