6
6
7
7
//--- Library.swift
8
8
9
- public class LibraryClass {
10
- }
11
-
12
- public protocol LibraryProtocol {
13
- }
9
+ public class LibraryClass { }
10
+ public protocol LibraryProtocol { }
11
+ package class PackageLibraryClass { }
12
+ package protocol PackageLibraryProtocol { }
14
13
15
14
//--- OtherLibrary.swift
16
15
public class OtherLibraryClass { }
17
- public class OtherLibraryProtocol { }
16
+ public protocol OtherLibraryProtocol { }
17
+ package class PackageOtherLibraryClass { }
18
+ package protocol PackageOtherLibraryProtocol { }
18
19
19
20
//--- Client.swift
20
21
21
- import Library
22
- import OtherLibrary
22
+ // package import Library
23
+ // package import OtherLibrary
23
24
24
- // These are all fine because all 3 of these libraries are in the same package.
25
+ // These are all fine because all 3 of these modules are in the same package.
25
26
26
27
extension LibraryClass : LibraryProtocol { }
27
28
extension OtherLibraryClass : LibraryProtocol { }
28
- extension LibraryClass : OtherLibraryProtocol { }
29
+ extension LibraryClass : OtherLibraryProtocol { }
30
+
31
+ extension PackageLibraryClass : LibraryProtocol { }
32
+ extension PackageOtherLibraryClass : LibraryProtocol { }
33
+ extension PackageLibraryClass : OtherLibraryProtocol { }
34
+
35
+ extension LibraryClass : PackageLibraryProtocol { }
36
+ extension OtherLibraryClass : PackageLibraryProtocol { }
37
+ extension LibraryClass : PackageOtherLibraryProtocol { }
38
+
39
+ extension PackageLibraryClass : PackageLibraryProtocol { }
40
+ extension PackageOtherLibraryClass : PackageLibraryProtocol { }
41
+ extension PackageLibraryClass : PackageOtherLibraryProtocol { }
0 commit comments