[SR-8295] Data.append(contentsOf: elements)
has poor error message.
#50823
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: c0f367ff9627a115ed630e3d8228acf5
Issue Description:
When examining #SR-3566, I found it doesn't initialize the sequence it appends to a `Data`
So, I tried to make a sequence, but accidentally made it a sequence of `Int`, not `UInt8`, so it errored. However, it errored with an ambiguity error and not with eg. "Int != UInt8".
So, this is a report of poor compiler error message.
The text was updated successfully, but these errors were encountered: