mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
rdar://problem/21193574 says that this warning dates back to when closure args before default args used to be considered as trailing closures. This is not the case anymore so Jordan suggested we remove the warning.
6 lines
197 B
Swift
6 lines
197 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
// SR-4205: Don't warn about non-trailing closures followed by parameters with
|
|
// default arguments.
|
|
func f1(_ f: () -> (), bar: Int = 10) { } // no-warning
|