Reasons for 'DependencyClient' macro not working #3480
-
Beta Was this translation helpful? Give feedback.
Answered by
mbrandonw
Nov 5, 2024
Replies: 1 comment 4 replies
-
Hi @iharandreyev, just because the macro isn't expanding it doesn't mean the macro isn't working. Xcode may be having problems displaying the expansion, but I'm certain that the macro is still working. Do you have evidence that shows that the macro is definitely not working? Like a compilation error somewhere? Any code you can share? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for that. The issue is the
let
. If you change it to avar
it should work.Currently
let
s are omitted from the initializer because they are given a default value (one that throws theUnimplemented
error), and so Swift would not be able to set that variable again. We do have some changes planned for the macro that would make this possible, but it's just not how it is today.