mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The internal parameter names are just there to give an extra hint in the source text for what the argument is. Consequently, we don't want to allow filtering to match against them.
21 lines
686 B
Swift
21 lines
686 B
Swift
typealias MyFnTy = Int ->Int
|
|
class C {
|
|
func foo(x: Int ->Int) {}
|
|
func foo2(x: MyFnTy) {}
|
|
}
|
|
|
|
C().
|
|
|
|
// RUN: %sourcekitd-test -req=complete -pos=7:5 %s -- %s | FileCheck %s
|
|
|
|
// CHECK: key.kind: source.lang.swift.decl.function.method.instance,
|
|
// CHECK-NEXT: key.name: "foo(:)",
|
|
// CHECK-NEXT: key.sourcetext: "foo(<#T##x: Int -> Int##Int -> Int#>)",
|
|
// CHECK-NEXT: key.description: "foo(x: Int -> Int)",
|
|
// CHECK-NEXT: key.typename: "Void",
|
|
|
|
// CHECK: key.kind: source.lang.swift.decl.function.method.instance,
|
|
// CHECK-NEXT: key.name: "foo2(:)",
|
|
// CHECK-NEXT: key.sourcetext: "foo2(<#T##x: MyFnTy##MyFnTy##Int -> Int#>)",
|
|
// CHECK-NEXT: key.description: "foo2(x: MyFnTy)",
|