File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Inputs/nested-type-with-overlay Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,13 @@ extension Base {
8
8
}
9
9
10
10
public var shadowedFromSwift = Base . NestedAndShadowed ( dummy: ( ) )
11
+
12
+ public struct CustomError {
13
+ public struct Code : RawRepresentable {
14
+ public let rawValue : Int
15
+
16
+ public init ( rawValue: Int ) {
17
+ self . rawValue = rawValue
18
+ }
19
+ }
20
+ }
Original file line number Diff line number Diff line change 8
8
9
9
// REQUIRES: asserts
10
10
11
- // CHECK: 3 Serialization - # of nested types resolved without full lookup
12
- // Unfortunately this isn't 4 because of the shadowed nested type from Clang.
11
+ // CHECK: 4 Serialization - # of nested types resolved without full lookup
12
+ // Unfortunately this isn't 5 because of the shadowed nested type from Clang.
13
13
14
14
import HasOverlay
15
15
@@ -20,3 +20,9 @@ public func resolveNestedTypes(
20
20
21
21
public var shadowedFromClang = getShadowedFromClang ( )
22
22
public var shadowedFromSwift = HasOverlay . shadowedFromSwift
23
+
24
+ extension CustomError . Code {
25
+ public static var failedSuccessfully : CustomError . Code {
26
+ return CustomError . Code ( rawValue: - 9999 )
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments