Skip to content

Commit a9e2f03

Browse files
committed
Configure parse options
1 parent ca2067b commit a9e2f03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

StyleCop.Analyzers/StyleCop.Analyzers.Test/AnalyzerConfigurationTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public CSharpTest(Type analyzerType)
7878
protected override CompilationOptions CreateCompilationOptions()
7979
=> new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true);
8080

81+
protected override ParseOptions CreateParseOptions()
82+
=> new CSharpParseOptions(LanguageVersion.CSharp6);
83+
8184
protected override IEnumerable<CodeFixProvider> GetCodeFixProviders()
8285
=> new CodeFixProvider[0];
8386

0 commit comments

Comments
 (0)