From 09212e3aeb4fd45b463944e597924169d7b56c77 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 22 Nov 2023 22:45:15 +0100 Subject: [PATCH] Fix language version in generator tests --- tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs index 94af76a2..0ec5579e 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs +++ b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs @@ -1428,10 +1428,10 @@ public class DiagnosticsTests MetadataReference.CreateFromFile(typeof(D3D12::ComputeSharp.IComputeShader).Assembly.Location) ]; - // Parse the source text (C# 11) + // Parse the source text (C# 12) SyntaxTree sourceTree = CSharpSyntaxTree.ParseText( source, - CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp11)); + CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp12)); // Create the original compilation CSharpCompilation compilation = CSharpCompilation.Create(