[SR-1557] Unused function-typed return values result in a hard error #44166
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
good first issue
Good for newcomers
Environment
OS X 10.10.5, swiftc version 2.1 (swiftlang-700.1.101.6 clang-700.1.76)
Additional Detail from JIRA
md5: f02d43f7c7b9cce2527f9568acf6ac13
Issue Description:
If a function returns a function, and the return value of the former is unused, a compilation error occurs:
For consistency (and convenience of testing, where I found this problem), such unused return values should yield a warning only.
The text was updated successfully, but these errors were encountered: