Skip to content

Commit

Permalink
correct message in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcadeMode committed Oct 21, 2022
1 parent 554394f commit 2500017
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11801,7 +11801,7 @@ class C
}";
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.RegularPreview)
.VerifyDiagnostics(
// (8,38): error CS9098: Cannot implicitly convert type 'string' to type 'A' in constant pattern using non-constant conversion
// (8,38): error CS9098: Cannot implicitly convert type 'string' to type 'A' using user-defined conversion in pattern expression
// static bool M(A a) => a switch { "convertme" => true, _ => false };
Diagnostic(ErrorCode.ERR_NonConstantConversionInConstantPattern, @"""implicitA""").WithArguments("string", "A").WithLocation(8, 38));
}
Expand Down

0 comments on commit 2500017

Please sign in to comment.