[SR-11535] Generic ambiguous none case is not diagnosed #53936
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 5.1
Additional Detail from JIRA
md5: 3440d3e720ac46459806c3e2a366f6c2
Issue Description:
The following code should trigger the ambiguous none warning, but doesn't:
I am not sure why the solver is rejecting the
Optional.none
solution and going forFoo<Int>.none
solution instead (maybe it's failing to bind T to a type?)The text was updated successfully, but these errors were encountered: