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
The source generator could easily find out the visibility of the class and use the same visibility for the generated partial class code. So why is it necessary for the class public?
The text was updated successfully, but these errors were encountered:
The source generator specifically creates a public partial class, if the public is removed, the type would get the visibility of the one that actually specifies the visibility...
I wouldn't mind creating a PR for this.
I didn't know that was possible (omitting the visibility so it uses the visibility of another part of the class where it is set). If so, that of course would be an option, too.
The source generator could easily find out the visibility of the class and use the same visibility for the generated partial class code. So why is it necessary for the class public?
The text was updated successfully, but these errors were encountered: