blob: 52d1a3ee305e3ba01f731d880e9915c49879d7d0 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
func f() {
}
print("\(f)")
// expected-warning@-1 {{string interpolation produces a debug description for a function value; did you mean to make this explicit?}}
// expected-note@-2 {{use 'String(describing:)' to silence this warning}} {{10-10=String(describing: }} {{11-11=)}}
print("\(String(describing: f))") // No warning