Skip to content
New issue

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

Field-like events with initializers #18

Closed
DustinCampbell opened this issue Jan 27, 2017 · 1 comment
Closed

Field-like events with initializers #18

DustinCampbell opened this issue Jan 27, 2017 · 1 comment
Labels

Comments

@DustinCampbell
Copy link
Member

Events defined like the following example are not matched properly (admittedly, these are extremely rare)

class C
{
    public event Action E = () => { };
    public event Action E1 = () => { }, E2 = () => { };
}
@wise0704
Copy link
Contributor

wise0704 commented Aug 8, 2023

Should be fixed by #266

it("multiple declarations with default value (issue #118)", async () => {
const input = Input.InClass(`
event EventHandler Event1 = delegate { },
Event2 = () => { }
, Event3 = null;`);
const tokens = await tokenize(input, "meta.accessor.");

@JoeRobich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants