@discardableResult
works with try
and try!
, but not try?
#71870
Labels
attributes
Feature: Declaration and type attributes
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
@discardableResult
Feature → attributes: The @discardableResult attribute
error handling
expressions
Feature: expressions
swift 6.0
type checker
Area → compiler: Semantic analysis
unexpected warning
Bug: Unexpected warning
Description
No response
Reproduction
Expected behavior
No warning
Environment
Swift version 5.11-dev (Swift 11ef6e5)
Additional information
No response
The text was updated successfully, but these errors were encountered: