[SR-12271] @discardableResult
not working for static function with function return type
#54699
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Target: x86_64-apple-darwin19.3.0
Additional Detail from JIRA
md5: 2b293c108978b3a0712411c5b80192dc
is duplicated by:
Issue Description:
The following code does not compile:
The error:
The text was updated successfully, but these errors were encountered: