You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to #146. The code generated by @DependencyClient is incorrect for @autoclosure parameters and generate invalid swift code. it should explicitly refuse to generate code or if possible generate valid code.
Checklist
I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
If possible, I've reproduced the issue using the main branch of this package.
@xiii111 Good catch! Do you have any interest in trying to tackle the problem with a pull request? No worries if not. We'll try to get to it soon otherwise 😄
@stephencelis Absolutely, I'll give it a try! However, I'm not familiar with SwiftSyntax, so if I can't finish it by the end of this week, I'll reach out to let you know.
Description
This is similar to #146. The code generated by
@DependencyClient
is incorrect for@autoclosure
parameters and generate invalid swift code. it should explicitly refuse to generate code or if possible generate valid code.Checklist
main
branch of this package.Expected behavior
Should generate valid swift code
Actual behavior
The code generated :
is not valid code:
Add () to forward @autoclosure parameter
Steps to reproduce
No response
Dependencies version information
1.1.2
Destination operating system
No response
Xcode version information
15.0.0
Swift Compiler version information
No response
The text was updated successfully, but these errors were encountered: