mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This enables the ability to cancel requests, which aren’t code completion requests, again. Previous crashes in SILGen are prevented by disabling cancellation during the SIL stages. Instead, we add dedicated cancellation checkpoints before and after SIL. rdar://98390926
8 lines
242 B
Swift
8 lines
242 B
Swift
// RUN: not %sourcekitd-test -req=diags %s -print-raw-response -id=diag -async -- %s == -cancel=diag 2>&1 | %FileCheck %s
|
|
|
|
func foo(x: Invalid1, y: Invalid2) {
|
|
x / y / x / y / x / y / x / y
|
|
}
|
|
|
|
// CHECK: error response (Request Cancelled)
|