File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ public struct Outer {
2
+ public protocol Inner {
3
+ func foo( )
4
+ }
5
+ }
6
+
7
+ extension Outer {
8
+ public protocol InnerInExtension {
9
+ func bar( )
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -emit-module -module-name nestedprotocolsource -emit-module-path %t/nestedprotocolsource.swiftmodule -primary-file %S/Inputs/nested-protocols.swift -enable-experimental-feature NestedProtocols
3
+ // RUN: %target-swift-frontend -emit-sil %s -I %t | Filecheck %s
4
+
5
+ import nestedprotocolsource
6
+
7
+ // CHECK: usesNested<A>(_:)
8
+ // CHECK-NEXT: sil @$s4main10usesNestedyyx20nestedprotocolsource5OuterV5InnerRzlF :
9
+ public func usesNested( _ x: some Outer . Inner ) { }
10
+
11
+ // CHECK: usesNestedInExtension<A>(_:)
12
+ // CHECK-NEXT: sil @$s4main21usesNestedInExtensionyyx20nestedprotocolsource5OuterV05InnerdE0RzlF :
13
+ public func usesNestedInExtension( _ x: some Outer . InnerInExtension ) { }
You can’t perform that action at this time.
0 commit comments