You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UWPSyncGenerator should generate private constructor when appropriate #6895
area/code-generationCategorizes an issue or PR as relevant to code generationdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't working
If the type doesn't have a public constructor, UWPSyncGenerator doesn't generate a private constructor, causing API to diverge from UWP if the developer wasn't careful enough and added the private ctor in the non-generated partial.
Expected behavior
UWPSyncGenerator should take care of that and generate private (or internal) constructor when there is no public constructor.
How to reproduce it (as minimally and precisely as possible)
area/code-generationCategorizes an issue or PR as relevant to code generationdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't working
Activity
jeromelaban commentedon Aug 27, 2021
This is being addressed by @ebariche in the api alignment branch
Youssef1313 commentedon Aug 29, 2021
@ebariche Can you please let me know when you're done with updating the sync generator?
Youssef1313 commentedon Sep 20, 2021
Ping @ebariche. Are you working on this? If not, I can jump on it as well as other UWPSyncGenerator issues that are going to be breaking changes.
jeromelaban commentedon Sep 21, 2021
@Youssef1313 it'll be done by elie part of similar work.
Youssef1313 commentedon Feb 1, 2023
@jeromelaban I believe this wasn't done in Uno 4.
Should I do this as part of the breaking changes for Uno 5? or is it not a big deal to do in 4.x?
jeromelaban commentedon Feb 1, 2023
We can do this for an Uno 5 release, yes.