Files
swift-mirror/validation-test/IDE/crashers_2_fixed/rdar85609548.swift
Alex Hoppen 49f8bdb019 [CodeCompletion] Add test cases that were fixed and had reduced reproducers
The following issues no longer reproduce on `main` and had reduced reproducers. Add them to the test suite.

- SR-12977
- SR-14691
- SR-15113
- rdar://63063279
- rdar://64227741
- rdar://69813796
- rdar://85609548
2022-05-13 15:49:08 +02:00

32 lines
679 B
Swift

// RUN: %swift-ide-test --code-completion --code-completion-token COMPLETE --source-filename %s
protocol View2 {}
struct Foo {
init() {}
func pnReceive(perform action: (MyResult) -> Void) -> some View2 {
fatalError()
}
}
struct SomeStruct {
var string: String
}
@resultBuilder public struct ViewBuilder2 {
public static func buildBlock<Content>(_ content: Content) -> Content where Content : View2 { fatalError() }
}
@ViewBuilder2 var body: some View2 {
Foo().pnReceive() { (value) in
switch value {
case let .success(#^COMPLETE^#raw, pretty):
break
}
}
}
enum MyResult {
case success(SomeStruct)
}