Skip to content

Commit f302da0

Browse files
authored
Merge pull request #27063 from xedin/diag-arg-conversion-failure
[Diagnostics] Introduce argument-to-parameter mismatch
2 parents c7be2de + 1bd4bb9 commit f302da0

File tree

64 files changed

+1094
-914
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1094
-914
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@ ERROR(cannot_convert_default_arg_value_nil,none,
379379
ERROR(cannot_convert_argument_value,none,
380380
"cannot convert value of type %0 to expected argument type %1",
381381
(Type,Type))
382+
383+
NOTE(candidate_has_invalid_argument_at_position,none,
384+
"candidate expects value of type %0 at position #%1",
385+
(Type, unsigned))
386+
382387
ERROR(cannot_convert_argument_value_generic,none,
383388
"cannot convert value of type %0 (%1) to expected argument type %2 (%3)",
384389
(Type, StringRef, Type, StringRef))

0 commit comments

Comments
 (0)