2 references to CheckValidPatternTypeForUnionCases
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Patterns.cs (2)
2427
(unionType is not null &&
CheckValidPatternTypeForUnionCases
(typeSyntax, unionType, patternType.Type, diagnostics: instanceTypeMatchDiagnostics, ref useSiteInfo));
2442
(newUnionType is not null &&
CheckValidPatternTypeForUnionCases
(typeSyntax, newUnionType, patternType.Type, diagnostics: unionValueTypeMatchDiagnostics, ref useSiteInfo));