File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: split-file %s %t
3
- // RUN: %target-swift-frontend -swift-version 5 %t/OtherLibrary.swift -package-name Library -emit-module -module-name OtherLibrary -package-name Library -o %t
4
- // RUN: %target-swift-frontend -typecheck %t/Library.swift -module-name Library -package-name Library -verify -swift-version 5 -import-underlying-module -I %t
5
- // RUN: %target-swift-frontend -typecheck %t/Client.swift -module-name Client -package-name Library -verify -swift-version 5 -I %t
3
+
4
+ // RUN: %target-swift-frontend -swift-version 5 %t/Library.swift -emit-module -module-name Library -o %t -package-name Library
5
+ // RUN: %target-swift-frontend -swift-version 5 %t/OtherLibrary.swift -emit-module -module-name OtherLibrary -o %t -package-name Library
6
+ // RUN: %target-swift-frontend -typecheck %t/Client.swift -module-name Client -verify -swift-version 5 -I %t -package-name Library
6
7
7
8
//--- Library.swift
8
9
@@ -12,15 +13,16 @@ package class PackageLibraryClass {}
12
13
package protocol PackageLibraryProtocol { }
13
14
14
15
//--- OtherLibrary.swift
16
+
15
17
public class OtherLibraryClass { }
16
18
public protocol OtherLibraryProtocol { }
17
19
package class PackageOtherLibraryClass { }
18
20
package protocol PackageOtherLibraryProtocol { }
19
21
20
22
//--- Client.swift
21
23
22
- // package import Library
23
- // package import OtherLibrary
24
+ package import Library
25
+ package import OtherLibrary
24
26
25
27
// These are all fine because all 3 of these modules are in the same package.
26
28
You can’t perform that action at this time.
0 commit comments