@discardableResult
doesn't work with computed property getter
#72752
Labels
accessors
Feature → declarations: Variable (property) accessors
attributes
Feature: Declaration and type attributes
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
declarations
Feature: declarations
@discardableResult
Feature → attributes: The @discardableResult attribute
swift 6.0
type checker
Area → compiler: Semantic analysis
unexpected behavior
Bug: Unexpected behavior or incorrect output
Description
No response
Reproduction
Expected behavior
@discardableResult
could suppress this warning.Environment
also occur in nightly:
Additional information
Similar to #71870 .
The text was updated successfully, but these errors were encountered: