5 references to ERR_ConstantPatternVsOpenType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Patterns.cs (1)
635
diagnostics.Add(ErrorCode.
ERR_ConstantPatternVsOpenType
,
Errors\ErrorFacts.cs (1)
1928
or ErrorCode.
ERR_ConstantPatternVsOpenType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\PatternMatchingTests2.cs (3)
2403
Diagnostic(ErrorCode.
ERR_ConstantPatternVsOpenType
, "null").WithArguments("T", "<null>", "8.0").WithLocation(5, 21),
2406
Diagnostic(ErrorCode.
ERR_ConstantPatternVsOpenType
, "1").WithArguments("T", "int", "8.0").WithLocation(13, 21),
2409
Diagnostic(ErrorCode.
ERR_ConstantPatternVsOpenType
, @"""frog""").WithArguments("T", "string", "8.0").WithLocation(17, 21));