Skip to content

Omit init properties#169

Merged
maca88 merged 2 commits intomaca88:masterfrom
gliljas:omitinitproperties
Oct 30, 2022
Merged

Omit init properties#169
maca88 merged 2 commits intomaca88:masterfrom
gliljas:omitinitproperties

Conversation

@gliljas
Copy link
Contributor

@gliljas gliljas commented Oct 26, 2022

Fixes #168

Not being fully versed in this code base, I just made a crude but working "skip this if it's not a standard setter".

Had to change LangVersion in the test project. Maybe that's an issue?

@hazzik
Copy link
Contributor

hazzik commented Oct 26, 2022

TypeConversion.NewType will likely fail or produce incorrect results with this approach.

@gliljas
Copy link
Contributor Author

gliljas commented Oct 26, 2022

Yeah, I'll give it another go tomorrow.

@maca88 maca88 added the bug label Oct 30, 2022
@maca88 maca88 added this to the 0.21.1 milestone Oct 30, 2022
@maca88
Copy link
Owner

maca88 commented Oct 30, 2022

Thanks for the pull request @gliljas!

TypeConversion.NewType will likely fail or produce incorrect results with this approach

Added a test for it.

@maca88 maca88 merged commit 3a270e3 into maca88:master Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Init properties crash AsyncGenerator

3 participants