[swift-dev] [Swift 2.2] Request to merge code completion fix for keywords as argument labels

Douglas Gregor dgregor at apple.com
Wed Feb 3 11:32:29 CST 2016


Hi Ted,

Code completion in Swift 2.2 is still putting back-ticks around argument labels that are keywords when forming calls, e.g., given:

	func find(x: Int, in array: [Int]) -> Int? { … }

code completion for “find” would back-tick “in” unnecessarily to form:

	find(<#x: Int#>, `in`: <#array: [Int]#>)

which immediately results in a diagnostic + Fix-It removing the back-ticks. This is fixed by

	https://github.com/apple/swift/commit/f1aac08bda3f46c78debac28439bf95e3413a9b0

which I’d like to pull into the Swift 2.2 branch.

	- Doug



More information about the swift-dev mailing list