We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently all generated extension methods are public regardless of the visibility of the variant type.
public
Thus the following generates invalid code because the generated extensions have inconsistent accessibility:
namespace Foo { internal class A { } [dotVariant.Variant] public partial class Variant { static partial void VariantOf(A a); } } // generated code: public static class VariantEx { // CS0051 and CS0057: Inconsistent accessibility public static void Match(this Variant v, out A a) { ... } }
The text was updated successfully, but these errors were encountered:
This issue appears to be solved
Sorry, something went wrong.
Unfortunately not, adding the following to the test project still fails with hard errors in the generated code.
namespace Foo { internal class A { } [dotVariant.Variant] public partial class Variant { static partial void VariantOf(A a); } }
mknejp
No branches or pull requests
Currently all generated extension methods are
public
regardless of the visibility of the variant type.Thus the following generates invalid code because the generated extensions have inconsistent accessibility:
The text was updated successfully, but these errors were encountered: