File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
test/SymbolGraph/Symbols/Mixins/DeclarationFragments/Full Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 4
4
// RUN: %FileCheck %s --input-file %t/SomeProtocol.symbols.json
5
5
// RUN: %FileCheck %s --input-file %t/SomeProtocol.symbols.json --check-prefix MULTI
6
6
7
+ // Note we use '-wmo' here to make sure the driver doesn't do merge-modules,
8
+ // which would result in printing the Type instead of TypeRepr, leading to
9
+ // inconsistency with the new driver. Once we switch to always using the new
10
+ // driver, we can remove it.
7
11
// RUN: %empty-directory(%t)
8
- // RUN: %target-build-swift %s -module-name SomeProtocol -emit-module -emit-module-path %t/SomeProtocol.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t/
12
+ // RUN: %target-build-swift %s -module-name SomeProtocol -emit-module -wmo - emit-module-path %t/SomeProtocol.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t/
9
13
// RUN: %validate-json %t/SomeProtocol.symbols.json %t/SomeProtocol.formatted.symbols.json
10
14
// RUN: %FileCheck %s --input-file %t/SomeProtocol.formatted.symbols.json
11
15
// RUN: %FileCheck %s --input-file %t/SomeProtocol.formatted.symbols.json --check-prefix MULTI
@@ -19,7 +23,7 @@ public func doSomething(with param: some SomeProtocol) {}
19
23
20
24
public protocol OtherProtocol { }
21
25
22
- public func doSomethingElse( with param: some SomeProtocol & OtherProtocol ) { }
26
+ public func doSomethingElse( with param: some OtherProtocol & SomeProtocol ) { }
23
27
24
28
// CHECK-LABEL: "precise": "s:12SomeProtocol11doSomething4withyx_tA2ARzlF",
25
29
You can’t perform that action at this time.
0 commit comments