[SR-6299] Throws/rethrows compilation error #48849
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.0
type checker
Area → compiler: Semantic analysis
Environment
Xcode 9.2 beta / Swift Trunk Snapshot (November 4)
Additional Detail from JIRA
md5: 117176693b6396be50616cb08b7c6219
Issue Description:
With all the moving parts, the following code fails to compile:
The error:
All of the following minor changes allow compilation:
Call the functions directly instead of using the operators
Remove
throws
/rethrows
from<|
Use an unboxed type in
suchThat
, likeA
orInt
This appears to be a regression, as this code worked in a previous, beta version of Swift 4.
The text was updated successfully, but these errors were encountered: