             case (_, _):
                 break
             }
-            """)
+            """),
+            // https://github.com/apple/swift/issues/61817
+            Example("""
+            switch bool {
+            case true?:
+              break
+            case false?:
+              break
+            case .none:
+              break
+            }
+            """, excludeFromDocumentation: true)
         ],
         triggeringExamples: [
             Example("""

                return
            }

            if let expression = pattern.expression.as(OptionalChainingExprSyntax.self) {
                violations.append(expression.questionMark.positionAfterSkippingLeadingTrivia)
            } else if let expression = pattern.expression.as(TupleExprSyntax.self) {
                let optionalChainingExpressions = expression.optionalChainingExpressions()

    func optionalChainingExpressions() -> [OptionalChainingExprSyntax] {
        elementList
            .compactMap { $0.expression.as(OptionalChainingExprSyntax.self) }
            .filter { !$0.expression.isDiscardAssignmentOrBoolLiteral }
    }
}

private extension ExprSyntax {
    var isDiscardAssignmentOrBoolLiteral: Bool {
        `is`(DiscardAssignmentExprSyntax.self) || `is`(BooleanLiteralExprSyntax.self)
    }
}
