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 fe62a68Copy full SHA for fe62a68
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,11 @@
+// RUN: %target-typecheck-verify-swift -import-objc-header %S/Inputs/issue-56636.h
+extension Letter: Strideable {
+ public func distance(to other: Self) -> RawValue.Stride {
+ self.rawValue.distance( to: other.rawValue )
+ }
7
8
+ public func advanced(by n: RawValue.Stride) -> Self {
9
+ Self( rawValue: self.rawValue.advanced( by: n ) )!
10
11
+}
0 commit comments