[SR-2657] error: '(f: () -> ())' is not convertible to '(f: () -> ())' #45262
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38)
Additional Detail from JIRA
md5: 7a65e12153c1ff4a9c591acc187417a4
relates to:
Issue Description:
The following code produces a bad error:
The error it produces is
If I change the code to say
Block<()->()>.init(f: block)
I get a much better error:The original code should be producing this error as well.
The text was updated successfully, but these errors were encountered: