Skip to content

Commit

Permalink
Don't use LanguageVersion.Preview now that we multi-target Roslyn
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Dec 24, 2023
1 parent cf1f089 commit 4ee532e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if NETCOREAPP && ROSLYN_4_2_OR_GREATER // Static abstract methods are only supported on .NET, and only by Roslyn 4.2+
#if NETCOREAPP && ROSLYN_4_4_OR_GREATER // Static abstract methods are only supported on .NET with C# 11

using Microsoft.CodeAnalysis.CSharp;
using Xunit;
Expand Down Expand Up @@ -38,15 +38,15 @@ public async void DoesNotFindWarning_ForStaticAbstractInterfaceMembers()
{
string source = string.Format(codeTemplate, string.Empty, methodCode);

await Verify.VerifyAnalyzer(LanguageVersion.Preview, source);
await Verify.VerifyAnalyzer(LanguageVersion.CSharp11, source);
}

[Fact]
public async void DoesNotFindWarning_ForNestedStaticAbstractInterfaceMembers()
{
string source = string.Format(codeTemplate, methodCode, string.Empty);

await Verify.VerifyAnalyzer(LanguageVersion.Preview, source);
await Verify.VerifyAnalyzer(LanguageVersion.CSharp11, source);
}

[Theory]
Expand Down

0 comments on commit 4ee532e

Please sign in to comment.