mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
368 B
Swift
11 lines
368 B
Swift
// 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
|