Files
swift-mirror/validation-test/compiler_crashers_fixed/AvailabilityScope-verify-97aef4.swift
Hamish Knight 588a5f1981 [Sema] Fix availability scope source range for SwitchStmt
Ensure we extend the end loc of the range, same as we do for the case
scope. This ensures the case scope is contained by the parent.
2026-06-09 23:49:23 +01:00

6 lines
256 B
Swift

// {"frontendArgs":["-typecheck"],"kind":"custom","signature":"swift::AvailabilityScope::verify(swift::AvailabilityScope const*, swift::ASTContext&) const","signatureNext":"verify"}
// RUN: not %target-swift-frontend -typecheck %s
switch {
case :
let a