Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: @Codable fails in structs with static members. #37

Merged
merged 5 commits into from
Nov 6, 2023

Conversation

Midbin
Copy link
Contributor

@Midbin Midbin commented Nov 6, 2023

This fixes #26.

Please note that I ran into, what I think, is a small swift compiler bug.
My workaround is in RegistrationAttribut.swift:45-52 and StaticVariableDeclaration.swift:46-50.

This is based on #34 because it also adds new tests and I will rebase this PR when #34 lands.

@Midbin Midbin marked this pull request as ready for review November 6, 2023 13:15
@Midbin Midbin force-pushed the StaticFields branch 2 times, most recently from c5af16a to 209a4b4 Compare November 6, 2023 14:06
@soumyamahunt
Copy link
Contributor

@Midbin please run swift-format as well:

swift run swift-format --in-place --ignore-unparsable-files --recursive Sources Tests

@soumyamahunt soumyamahunt merged commit e256e12 into SwiftyLab:main Nov 6, 2023
5 checks passed
@Midbin Midbin deleted the StaticFields branch November 6, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] @Codable fails in structs with static members.
2 participants