mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The original hope was we could make these heuristics really good, but since that is not currently in sight (and may never be), we want to be able to turn them off. For now, just plumb through an internal flag to control the behaviour. A future change will customize the behaviour in SourceKit. rdar://31113161
13 lines
381 B
Swift
13 lines
381 B
Swift
struct S {
|
|
init(foo: Int) {}
|
|
}
|
|
func takeS(_: S, other: Int) {}
|
|
|
|
func test() {
|
|
takeS(S(, other: 2)
|
|
}
|
|
|
|
// RUN: %sourcekitd-test -req=complete -pos=7:11 %s -- %s | %FileCheck %s -check-prefix=NO_PATTERN
|
|
|
|
// RUN: %sourcekitd-test -req=complete.open -pos=7:11 %s -- %s | %FileCheck %s -check-prefix=NO_PATTERN
|
|
// NO_PATTERN-NOT: key.kind: source.lang.swift.decl.function.constructor |