Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0146-rdar38309176.swift
Hamish Knight e2096ae34d [CSDiagnostics] Tweak candidate note text for arg mismatch
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).
2019-10-03 15:26:31 -07:00

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'}}
}