Files
swift-mirror/test/decl/func/trailing_closures.swift
David Hart 01b5b6a037 [SR-4205] Removed the non_trailing_closure_before_default_args warning (#8033)
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.
2017-03-15 09:55:08 -07:00

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