// 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
    }
}
