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