Open JadenGeller opened 1 month ago
A nightly compiler reports
/Users/mac/Desktop/test.swift:213:52: error: closure passed to parameter of type '(_: (String) -> (Int, Int))' that does not accept a closure [closure_bad_param]
let x = Transformer<String, (Int, Int)>(transform: { x in
^~~~~~
Reproduction
Stack dump
Expected behavior
It should compile.
Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) Target: arm64-apple-macosx14.0
Additional information
No response