Open mateusrodriguesxyz opened 4 months ago
I tried running this code with Swift 6.0 toolchain in Xcode 15.3 and it does report Inferred projection type 'User' is not a property wrapper
, but only for a second and then goes back to Failed to produce diagnostic for expression
.
Description
The compiler reports
Failed to produce diagnostic for expression
when trying to use projected value in closure but the parameter is not actually a property wrapper.Reproduction
Expected behavior
It would be good a diagnostic saying that the parameter type doesn't support projected value and a suggestion to remove the
$
, something like:Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0
Additional information
No response