-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationgood first issueGood for newcomersGood for newcomers
Description
Previous ID | SR-10291 |
Radar | rdar://problem/49393677 |
Original Reporter | @xedin |
Type | Bug |
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Bug, DiagnosticsQoI, StarterBug |
Assignee | None |
Priority | Medium |
md5: 59ddf07a63039e0c74cd437ae791689d
Issue Description:
Consider following example:
func foo(_: UnsafePointer<Int8>?) {}
foo((1, 2, 3))
This results in:
cannot convert value of type '(Int, Int, Int)' to expected argument type 'UnsafePointer<Int8>?'
So the more elements to the tuple we add, the bigger the message is going to get.
I think it makes sense to trim contents of the tuple which has same types to something like `(Int8, ..., Int8)` to make sure that it doesn't grow too long.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationgood first issueGood for newcomersGood for newcomers