Files
swift-mirror/validation-test/IDE/stress_tester_issues_fixed/issue-78397.swift
Hamish Knight 4e33cef20c [AST] Walk into LocatableType in TypeWalker
Make sure we walk into the underlying type for
LocatableType.
2025-01-02 15:02:11 +00:00

22 lines
394 B
Swift

// RUN: %batch-code-completion
// https://github.com/apple/swift/issues/78397
struct TabView<Content> {
public init(@ViewBuilder content: () -> Content)
}
protocol View {}
func tabItem() -> some View
@resultBuilder struct ViewBuilder {
static func buildBlock<T>(_ content: T) -> T
}
func test() -> some View {
TabView {
tabItem
}#^COMPLETE^#
// COMPLETE: Begin completions
}