5 references to ERR_ConstantPatternVsOpenType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Patterns.cs (1)
625
diagnostics.Add(ErrorCode.
ERR_ConstantPatternVsOpenType
,
Errors\ErrorFacts.cs (1)
1871
case ErrorCode.
ERR_ConstantPatternVsOpenType
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Semantics\PatternMatchingTests2.cs (3)
2407
Diagnostic(ErrorCode.
ERR_ConstantPatternVsOpenType
, "null").WithArguments("T", "<null>", "8.0").WithLocation(5, 21),
2410
Diagnostic(ErrorCode.
ERR_ConstantPatternVsOpenType
, "1").WithArguments("T", "int", "8.0").WithLocation(13, 21),
2413
Diagnostic(ErrorCode.
ERR_ConstantPatternVsOpenType
, @"""frog""").WithArguments("T", "string", "8.0").WithLocation(17, 21));