Fix language version in generator tests

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-22 22:45:15 +01:00
1 親 3fb3891d93
コミット 09212e3aeb
1ファイル変更
+2 -2
+2 -2
ファイルの表示
@@ -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(