Skip to content

Commit

Permalink
Fix a LangVer
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv committed Jul 26, 2023
1 parent 24a6d3b commit d0320ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2562,7 +2562,7 @@ public static class E
Diagnostic(ErrorCode.ERR_CannotInferDelegateType, "new C().M").WithLocation(2, 9)
);

comp = CreateCompilation(source, parseOptions: TestOptions.Regular11);
comp = CreateCompilation(source, parseOptions: TestOptions.RegularNext);
comp.VerifyDiagnostics(
// (1,19): error CS0411: The type arguments for method 'C.M<T>()' cannot be inferred from the usage. Try specifying the type arguments explicitly.
// System.Action x = new C().M;
Expand Down

0 comments on commit d0320ee

Please sign in to comment.