Files
swift-mirror/validation-test/IDE/crashers_fixed/rdar69246891.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

22 lines
432 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_2 -source-filename=%s
class MyCls {
public init(body: (Int) throws -> Void) {}
}
func foo() {
MyCls { arg in
MyCls { #^COMPLETE^#
}
}
}
func receive(fn: () -> throws Void) {}
func test2() {
receive {
switch #^COMPLETE_2^#
}
}