Macros prevent synthesized initializers from generating #115
Lancelotbronner
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @Lancelotbronner, can you please provide a code snippet that demonstrates the problem you are seeing? I am not able to reproduce. I see the default synthesized initializer just fine: ![]() Also, you can check the macro tests to see that the initializers are added in extensions, for both @Table and @Selection. Since it isn't clear this is an issue with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Since
@Table
(and I assume@Selection
) add initializers directly within the structure definition rather than in an extension, it prevents Swift from producing the default initializer.I'm not using this in SwiftUI
Checklist
main
branch of this package.Expected behavior
The default initializer is present.
Actual behavior
The default initializer is not synthesized.
Reproducing project
No response
Structured Queries version information
0.8.1
Destination operating system
No response
Xcode version information
No response
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions