Files
swift-mirror/test/SourceKit/CodeComplete/complete_name.swift
Dmitri Gribenko b6d0ef5c81 Remove support for a broken std::regex in libstdc++ 4.8
Out of all operating systems ever supported by Swift, only Ubuntu 14.04
had libstdc++ 4.8, and Swift has sunset support for Ubuntu 14.04 for a
while now.
2020-05-19 17:20:55 +02:00

21 lines
596 B
Swift

// RUN: %complete-test -raw -tok=INIT_NAME %s | %FileCheck %s -check-prefix=INIT_NAME
// RUN: %complete-test -raw -tok=METHOD_NAME %s | %FileCheck %s -check-prefix=METHOD_NAME
struct S {
init(a: Int, b: Int, _ c: Int) {}
init(_ a: Int, _ b: Int) {}
func foo1(_ a: Int, _ b: Int, _ c: Int, _ d: Int..., _ e: inout Int) {}
func foo2(a a: Int, b: Int, c: Int, d: Int..., e: inout Int) {}
}
func test01() {
S(#^INIT_NAME^#)
}
// INIT_NAME: key.name: "a:b::"
func test02(_ x: S) {
x.#^METHOD_NAME^#
}
// METHOD_NAME: key.name: "foo1(:::::)"
// METHOD_NAME: key.name: "foo2(a:b:c:d:e:)"