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