mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
613 B
Swift
24 lines
613 B
Swift
// RUN: %sourcekitd-test -req=index %s -- -Xfrontend -serialize-diagnostics-path -Xfrontend %t.dia %s -Xfrontend -disable-implicit-concurrency-module-import -Xfrontend -disable-implicit-string-processing-module-import | %sed_clean > %t.response
|
|
// RUN: %diff -u %s.response %t.response
|
|
|
|
class ClassA {
|
|
init(){}
|
|
}
|
|
|
|
func +(lhs: ClassA, rhs: ClassA) -> ClassA {
|
|
return lhs
|
|
}
|
|
|
|
struct StructB {
|
|
func method() {
|
|
let a = ClassA()
|
|
let b = a + a
|
|
let c = StructB()
|
|
let d = c - c
|
|
}
|
|
|
|
public static func -(lhs: StructB, rhs: StructB) -> StructB {
|
|
return lhs
|
|
}
|
|
}
|