/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/CSharp/Portable/BoundTree/BoundDeclarationPattern.cs
17 строк
553 B
Julien Couvreur
Warn for redundant pattern in `not ... or <redundant>` pattern (#75581)
10 окт 2025, 03:57
Не верифицирован
10 окт 2025, 03:57
579f106
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; namespace Microsoft.CodeAnalysis.CSharp { internal partial class BoundDeclarationPattern { private partial void Validate() { Debug.Assert(DeclaredType is not null); Debug.Assert(NarrowedType.Equals(DeclaredType.Type, TypeCompareKind.AllIgnoreOptions)); } } }