Files
swift-mirror/test/decl/func/trailing_closures.swift
2022-08-26 03:26:32 +03:00

7 lines
235 B
Swift

// RUN: %target-typecheck-verify-swift
// https://github.com/apple/swift/issues/46788
// Don't warn about non-trailing closures followed by parameters with
// default arguments.
func f1(_ f: () -> (), bar: Int = 10) { } // no-warning