Skip to content

Update compiler error message for expression bodied members #91

@controlflow

Description

@controlflow
partial class FooBar {
  partial void M() => M();
}

partial class FooBar {
  async partial void M();
}

Produces compiler error:

error CS1994: The 'async' modifier can only be used in methods that have a statement body.

Requirement of "statement body" is no longer valid in C# 6.0, since expression body can be used for async methods as well.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions