Replies: 1 comment 5 replies
-
Hi @innoreq, the compiler diagnostic is trying to describe the situation. Any endpoint in your client that is non-throwing must have a default value. And the fix-it tries to help:
The reason this is needed is because one of the main uses of How could the compiler diagnostic have been improved to make this clearer? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I previously had this struct definition for a dependency:
I now added
@DependencyClient
in front to the struct. I expected it to simply compile, but I got this error message:This is somehow strange: why Is this error thrown at all? And why only for the third of these declarations, and not for the other two as well?
Beta Was this translation helpful? Give feedback.
All reactions