mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Number the parameters starting at 1 in order to match other diagnostics such as diag::missing_argument_positional, and change the text to make it explicit that we're referring to the parameter position (rather than argument position).
9 lines
399 B
Swift
9 lines
399 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
func foo(_ msg: Int) {} // expected-note {{candidate expects value of type 'Int' for parameter #1}}
|
|
func foo(_ msg: Double) {} // expected-note {{candidate expects value of type 'Double' for parameter #1}}
|
|
|
|
func rdar38309176(_ errors: inout [String]) {
|
|
foo("error: \(errors[0])") // expected-error {{no exact matches in call to global function 'foo'}}
|
|
}
|