[SR-9090] Unhelpful diagnostic with inout-to-pointer to a nested optional pointer #51587
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
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Environment
Swift version 4.2-dev (LLVM 80f624ef0e, Clang fb15cea7bb, Swift e7700f9497)
Target: x86_64-apple-darwin17.7.0
Additional Detail from JIRA
md5: c52e7a004d6f037077f05c07b1f506d8
Issue Description:
I would either expect the diagnostic "'&' used with non-inout argument of type 'UnsafeMutableRawPointer??'" or a custom diagnostic explaining that inout-to-pointer only works for non-optional or single-optional pointer types.
The text was updated successfully, but these errors were encountered: