[SR-10917] Cannot disambigue if generic function throws #53308
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
Environment
Apple Swift version 5.1-dev (LLVM e56fafcd29, Swift c2848e7)
Additional Detail from JIRA
md5: bf2c37d4d3b2f1809e556cee6898b163
Issue Description:
here's the thing, foo<>() and bar<>() from below snippet looks similar, except there's one difference where foo<_>() throws and rethrows closure parameter. This makes Swift unable to resolve expected Optional T
https://gist.github.com/krzyzanowskim/2746f2fa4b816b19f38196d27b741994
I can't really tell, maybe it's expected behavior. I'm having a hard time to understand it, so I appreciate if you can explain it to me a bit.
The text was updated successfully, but these errors were encountered: