[SR-4536] Useless diagnostic unwrapping weak self in closure #47113
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
Environment
Swift version 3.1 (swiftlang-802.0.48 clang-802.0.38)
Swift version 4.0 (swiftlang-900.0.59 clang-900.0.34.2)
Additional Detail from JIRA
md5: e28f8bd1ca54953bce648738e911d723
Issue Description:
Code:
Expected result:
It works, just like this works:
Actual result:
3 useless diagnostics:
Cannot convert value of type 'C?' to expected argument type '_OptionalNilComparisonType'
Pattern matching in a condition requires the 'case' keyword
Expression implicitly coerced from 'C?' to Any
The text was updated successfully, but these errors were encountered: