FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Nested `private` custom formatters result in CS0122: inaccessible from source generated resolver · Issue #1817 · MessagePack-CSharp/MessagePack-CSharp · GitHub

Nested private custom formatters result in CS0122: inaccessible from source generated resolver #1817

Description

Given code like this:

class A {
   private class JTokenFormatter : IMessagePackFormatter<JToken?> { /* ... */ }
}

The source generated resolver will try to access that formatter, and cannot due to visibility rules. The compilation breaks with a CS0122 error.

We should skip private formatters, and possibly report a warning diagnostic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL