mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
This is necessary to disambiguate some symbols with the same path components and makes the data clearer to debug. rdar://problem/59841727
16 lines
522 B
Swift
16 lines
522 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name Operator -emit-module -emit-module-path %t/
|
|
// RUN: %target-swift-symbolgraph-extract -module-name Operator -I %t -pretty-print -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/Operator.symbols.json
|
|
|
|
public struct S {
|
|
// CHECK: "identifier": "swift.func.op"
|
|
// CHECK-NEXT: "displayName": "Operator"
|
|
// CHECK: pathComponents
|
|
// CHECK-NEXT: "S"
|
|
// CHECK-NEXT: "+(_:_:)"
|
|
public static func +(lhs: S, rhs: S) -> S {
|
|
return lhs
|
|
}
|
|
}
|