Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv committed Mar 19, 2024
1 parent f26ea40 commit 474b01a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public async Task M1()
}/*</bind>*/
}
public async System.Threading.Tasks.ValueTask DisposeAsync()
{
public async System.Threading.Tasks.ValueTask DisposeAsync()
{
await Task.Yield();
}
}
Expand Down Expand Up @@ -204,8 +204,8 @@ public async Task M1()
}/*</bind>*/
}
async ValueTask IAsyncDisposable.DisposeAsync()
{
async ValueTask IAsyncDisposable.DisposeAsync()
{
await Task.Yield();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,10 @@ static async Task Main()
";
var expected = new[]
{
// (8,15): error CS8652: The feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater.
// 0.cs(8,9): error CS8370: Feature 'pattern-based disposal' is not available in C# 7.3. Please use language version 8.0 or greater.
// await using IAsyncDisposable x = null;
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "await using IAsyncDisposable x = null;").WithArguments("pattern-based disposal", "8.0").WithLocation(8, 9),
// 0.cs(8,15): error CS8370: Feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater.
// await using IAsyncDisposable x = null;
Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion7_3, "using").WithArguments("using declarations", "8.0").WithLocation(8, 15)
};
Expand Down

0 comments on commit 474b01a

Please sign in to comment.