Files
swift-mirror/test/SourceKit/Indexing/index_operators.swift
Richard Wei 94e8f5393e Enable string processing by default.
Make frontend flag `-enable-experimental-string-processing` default to true.
2022-06-12 20:25:16 -07:00

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