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